SecurityNotAllowedFilterError
extends SecurityError
in package
Exception thrown when a not allowed filter is used in a template.
Tags
Table of Contents
- $filterName : mixed
- $lineno : mixed
- $name : mixed
- $rawMessage : mixed
- $sourceCode : mixed
- $sourcePath : mixed
- __construct() : mixed
- appendMessage() : mixed
- getFilterName() : 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
$filterName
private
mixed
$filterName
$lineno
private
mixed
$lineno
$name
private
mixed
$name
$rawMessage
private
mixed
$rawMessage
$sourceCode
private
mixed
$sourceCode
$sourcePath
private
mixed
$sourcePath
Methods
__construct()
public
__construct(string $message, string $functionName[, int $lineno = -1 ][, string $filename = null ][, Exception $previous = null ]) : mixed
Parameters
- $message : string
- $functionName : 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 —getFilterName()
public
getFilterName() : 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