class SecurityNotAllowedFunctionError
Exception thrown when a not allowed function is used in a template.
@author Martin HasoĊ <martin.hason@gmail.com>
Hierarchy
- class \Twig\Error\Error extends \Twig\Error\Exception
- class \Twig\Sandbox\SecurityError extends \Twig\Error\Error
- class \Twig\Sandbox\SecurityNotAllowedFunctionError extends \Twig\Sandbox\SecurityError
- class \Twig\Sandbox\SecurityError extends \Twig\Error\Error
Expanded class hierarchy of SecurityNotAllowedFunctionError
File
-
vendor/
twig/ twig/ src/ Sandbox/ SecurityNotAllowedFunctionError.php, line 19
Namespace
Twig\SandboxView source
final class SecurityNotAllowedFunctionError extends SecurityError {
private $functionName;
public function __construct(string $message, string $functionName) {
parent::__construct($message);
$this->functionName = $functionName;
}
public function getFunctionName() : string {
return $this->functionName;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
SecurityNotAllowedFunctionError::$functionName | private | property | |
SecurityNotAllowedFunctionError::getFunctionName | public | function | |
SecurityNotAllowedFunctionError::__construct | public | function |