SecurityNotAllowedMethodError
extends SecurityError
in package
Exception thrown when a not allowed class method is used in a template.
Tags
Table of Contents
- $className : mixed
- $lineno : mixed
- $methodName : mixed
- $name : mixed
- $rawMessage : mixed
- $sourceCode : mixed
- $sourcePath : mixed
- __construct() : mixed
- appendMessage() : mixed
- getClassName() : mixed
- getMethodName() : mixed
- getRawMessage() : string
- Gets the raw message.
- getSourceContext() : Source|null
- Gets the source context of the Twig template where the error occurred.
- getTemplateLine() : int
- Gets the template line where the error occurred.
- guess() : mixed
- setSourceContext() : mixed
- Sets the source context of the Twig template where the error occurred.
- setTemplateLine() : mixed
- Sets the template line where the error occurred.
- guessTemplateInfo() : mixed
- updateRepr() : mixed
Properties
$className
private
mixed
$className
$lineno
private
mixed
$lineno
$methodName
private
mixed
$methodName
$name
private
mixed
$name
$rawMessage
private
mixed
$rawMessage
$sourceCode
private
mixed
$sourceCode
$sourcePath
private
mixed
$sourcePath
Methods
__construct()
public
__construct(string $message, string $className, string $methodName[, int $lineno = -1 ][, string $filename = null ][, Exception $previous = null ]) : mixed
Parameters
- $message : string
- $className : string
- $methodName : string
- $lineno : int = -1
- $filename : string = null
- $previous : Exception = null
Return values
mixed —appendMessage()
public
appendMessage(mixed $rawMessage) : mixed
Parameters
- $rawMessage : mixed
Return values
mixed —getClassName()
public
getClassName() : mixed
Return values
mixed —getMethodName()
public
getMethodName() : mixed
Return values
mixed —getRawMessage()
Gets the raw message.
public
getRawMessage() : string
Return values
string —The raw message
getSourceContext()
Gets the source context of the Twig template where the error occurred.
public
getSourceContext() : Source|null
Return values
Source|null —getTemplateLine()
Gets the template line where the error occurred.
public
getTemplateLine() : int
Return values
int —The template line
guess()
public
guess() : mixed
Return values
mixed —setSourceContext()
Sets the source context of the Twig template where the error occurred.
public
setSourceContext([Source $source = null ]) : mixed
Parameters
- $source : Source = null
Return values
mixed —setTemplateLine()
Sets the template line where the error occurred.
public
setTemplateLine(int $lineno) : mixed
Parameters
- $lineno : int
-
The template line
Return values
mixed —guessTemplateInfo()
private
guessTemplateInfo() : mixed
Return values
mixed —updateRepr()
private
updateRepr() : mixed