class SecurityNotAllowedMethodError
Exception thrown when a not allowed class method is used in a template.
@author Kit Burton-Senior <mail@kitbs.com>
Hierarchy
- class \Twig\Error\Error extends \Twig\Error\Exception
- class \Twig\Sandbox\SecurityError extends \Twig\Error\Error
- class \Twig\Sandbox\SecurityNotAllowedMethodError extends \Twig\Sandbox\SecurityError
- class \Twig\Sandbox\SecurityError extends \Twig\Error\Error
Expanded class hierarchy of SecurityNotAllowedMethodError
2 files declare their use of SecurityNotAllowedMethodError
- CoreExtension.php in vendor/
twig/ twig/ src/ Extension/ CoreExtension.php - SandboxExtension.php in vendor/
twig/ twig/ src/ Extension/ SandboxExtension.php
File
-
vendor/
twig/ twig/ src/ Sandbox/ SecurityNotAllowedMethodError.php, line 19
Namespace
Twig\SandboxView source
final class SecurityNotAllowedMethodError extends SecurityError {
private $className;
private $methodName;
public function __construct(string $message, string $className, string $methodName) {
parent::__construct($message);
$this->className = $className;
$this->methodName = $methodName;
}
public function getClassName() : string {
return $this->className;
}
public function getMethodName() {
return $this->methodName;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
SecurityNotAllowedMethodError::$className | private | property | |
SecurityNotAllowedMethodError::$methodName | private | property | |
SecurityNotAllowedMethodError::getClassName | public | function | |
SecurityNotAllowedMethodError::getMethodName | public | function | |
SecurityNotAllowedMethodError::__construct | public | function |