39        $this->sandboxed = 
true;
 
   44        $this->sandboxed = 
false;
 
   70            $this->policy->checkSecurity(
$tags, $filters, $functions);
 
   77            $this->policy->checkMethodAllowed($obj, $method);
 
   84            $this->policy->checkPropertyAllowed($obj, $method);
 
   91            $this->policy->checkMethodAllowed($obj, 
'__toString');
 
  103class_alias(
'Twig_Extension_Sandbox', 
'Twig\Extension\SandboxExtension', 
false);
 
An exception for terminatinating execution or to throw for unit testing.
checkPropertyAllowed($obj, $method)
__construct(Twig_Sandbox_SecurityPolicyInterface $policy, $sandboxed=false)
checkMethodAllowed($obj, $method)
getNodeVisitors()
Returns the node visitor instances to add to the existing list.
ensureToStringAllowed($obj)
checkSecurity($tags, $filters, $functions)
setSecurityPolicy(Twig_Sandbox_SecurityPolicyInterface $policy)
getTokenParsers()
Returns the token parser instances to add to the existing list.
Twig_NodeVisitor_Sandbox implements sandboxing.
Marks a section of a template as untrusted code that must be evaluated in the sandbox mode.
Interfaces that all security policy classes must implements.