public function Twig_Sandbox_SecurityNotAllowedFunctionError::__construct in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Sandbox/SecurityNotAllowedFunctionError.php \Twig_Sandbox_SecurityNotAllowedFunctionError::__construct()
Constructor.
Set both the line number and the filename to false to disable automatic guessing of the original template name and line number.
Set the line number to -1 to enable its automatic guessing. Set the filename to null to enable its automatic guessing.
By default, automatic guessing is enabled.
Parameters
string $message The error message:
int $lineno The template line where the error occurred:
string $filename The template file name where the error occurred:
Exception $previous The previous exception:
Overrides Twig_Error::__construct
File
- vendor/
Twig/ Sandbox/ SecurityNotAllowedFunctionError.php, line 21
Class
- Twig_Sandbox_SecurityNotAllowedFunctionError
- Exception thrown when a not allowed function is used in a template.
Code
public function __construct($message, $functionName, $lineno = -1, $filename = null, Exception $previous = null) {
parent::__construct($message, $lineno, $filename, $previous);
$this->functionName = $functionName;
}