class SecurityNotAllowedPropertyError
Exception thrown when a not allowed class property 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\SecurityNotAllowedPropertyError extends \Twig\Sandbox\SecurityError
- class \Twig\Sandbox\SecurityError extends \Twig\Error\Error
Expanded class hierarchy of SecurityNotAllowedPropertyError
2 files declare their use of SecurityNotAllowedPropertyError
- 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/ SecurityNotAllowedPropertyError.php, line 19
Namespace
Twig\SandboxView source
final class SecurityNotAllowedPropertyError extends SecurityError {
private $className;
private $propertyName;
public function __construct(string $message, string $className, string $propertyName) {
parent::__construct($message);
$this->className = $className;
$this->propertyName = $propertyName;
}
public function getClassName() : string {
return $this->className;
}
public function getPropertyName() {
return $this->propertyName;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
SecurityNotAllowedPropertyError::$className | private | property | |
SecurityNotAllowedPropertyError::$propertyName | private | property | |
SecurityNotAllowedPropertyError::getClassName | public | function | |
SecurityNotAllowedPropertyError::getPropertyName | public | function | |
SecurityNotAllowedPropertyError::__construct | public | function |