public function Twig_Sandbox_SecurityPolicy::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Sandbox/SecurityPolicy.php \Twig_Sandbox_SecurityPolicy::__construct()
File
- vendor/
twig/ twig/ lib/ Twig/ Sandbox/ SecurityPolicy.php, line 25
Class
- Twig_Sandbox_SecurityPolicy
- Represents a security policy which need to be enforced when sandbox mode is enabled.
Code
public function __construct(array $allowedTags = array(), array $allowedFilters = array(), array $allowedMethods = array(), array $allowedProperties = array(), array $allowedFunctions = array()) {
$this->allowedTags = $allowedTags;
$this->allowedFilters = $allowedFilters;
$this
->setAllowedMethods($allowedMethods);
$this->allowedProperties = $allowedProperties;
$this->allowedFunctions = $allowedFunctions;
}