Lines Matching refs:sandbox
341 * *Twig_Extension_Sandbox*: Adds a sandbox mode to the default Twig
473 The ``sandbox`` extension can be used to evaluate untrusted code. Access to
474 unsafe attributes and methods is prohibited. The sandbox security is managed
496 The policy object is the first argument of the sandbox constructor::
498 $sandbox = new \Twig\Extension\SandboxExtension($policy);
499 $twig->addExtension($sandbox);
501 By default, the sandbox mode is disabled and should be enabled when including
502 untrusted template code by using the ``sandbox`` tag:
506 {% sandbox %}
510 You can sandbox all templates by passing ``true`` as the second argument of
513 $sandbox = new \Twig\Extension\SandboxExtension($policy, true);