You are here

public function Twig_Sandbox_SecurityPolicy::setAllowedFunctions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Sandbox/SecurityPolicy.php \Twig_Sandbox_SecurityPolicy::setAllowedFunctions()

File

vendor/twig/twig/lib/Twig/Sandbox/SecurityPolicy.php, line 57

Class

Twig_Sandbox_SecurityPolicy
Represents a security policy which need to be enforced when sandbox mode is enabled.

Code

public function setAllowedFunctions(array $functions) {
  $this->allowedFunctions = $functions;
}