interface SecurityPolicyInterface
Interface that all security policy classes must implements.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- interface \Twig\Sandbox\SecurityPolicyInterface
Expanded class hierarchy of SecurityPolicyInterface
All classes that implement SecurityPolicyInterface
2 files declare their use of SecurityPolicyInterface
- SandboxExtension.php in vendor/
twig/ twig/ src/ Extension/ SandboxExtension.php - TwigSandboxPolicy.php in core/
lib/ Drupal/ Core/ Template/ TwigSandboxPolicy.php
File
-
vendor/
twig/ twig/ src/ Sandbox/ SecurityPolicyInterface.php, line 19
Namespace
Twig\SandboxView source
interface SecurityPolicyInterface {
/**
* @param string[] $tags
* @param string[] $filters
* @param string[] $functions
*
* @throws SecurityError
*/
public function checkSecurity($tags, $filters, $functions) : void;
/**
* @param object $obj
* @param string $method
*
* @throws SecurityNotAllowedMethodError
*/
public function checkMethodAllowed($obj, $method) : void;
/**
* @param object $obj
* @param string $property
*
* @throws SecurityNotAllowedPropertyError
*/
public function checkPropertyAllowed($obj, $property) : void;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
SecurityPolicyInterface::checkMethodAllowed | public | function | 2 | |
SecurityPolicyInterface::checkPropertyAllowed | public | function | 2 | |
SecurityPolicyInterface::checkSecurity | public | function | 2 |