|
|
| __construct (array $allowedTags=[], array $allowedFilters=[], array $allowedMethods=[], array $allowedProperties=[], array $allowedFunctions=[]) |
|
| setAllowedTags (array $tags) |
|
| setAllowedFilters (array $filters) |
|
| setAllowedMethods (array $methods) |
|
| setAllowedProperties (array $properties) |
|
| setAllowedFunctions (array $functions) |
| | checkSecurity ($tags, $filters, $functions) |
| | checkMethodAllowed ($obj, $method) |
| | checkPropertyAllowed ($obj, $property) |
Represents a security policy which need to be enforced when sandbox mode is enabled.
- Auteur
- Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
◆ checkMethodAllowed()
| checkMethodAllowed |
( |
| $obj, |
|
|
| $method ) |
◆ checkPropertyAllowed()
| checkPropertyAllowed |
( |
| $obj, |
|
|
| $property ) |
- Paramètres
-
| object | $obj | |
| string | $property | |
- Exceptions
-
| SecurityNotAllowedPropertyError | |
Implémente SecurityPolicyInterface.
◆ checkSecurity()
| checkSecurity |
( |
| $tags, |
|
|
| $filters, |
|
|
| $functions ) |
La documentation de cette classe a été générée à partir du fichier suivant :
- vendor/twig/twig/src/Sandbox/SecurityPolicy.php