Lines Matching refs:env
45 protected function doEnterNode(Node $node, Environment $env) argument
48 …if ($env->hasExtension('\Twig\Extension\EscaperExtension') && $defaultStrategy = $env->getExtensio…
56 …e->getAttribute('name')]) ? $this->blocks[$node->getAttribute('name')] : $this->needEscaping($env);
64 protected function doLeaveNode(Node $node, Environment $env) argument
71 return $this->preEscapeFilterNode($node, $env);
73 return $this->escapePrintNode($node, $env, $this->needEscaping($env));
79 $this->blocks[$node->getAttribute('name')] = $this->needEscaping($env);
85 protected function escapePrintNode(PrintNode $node, Environment $env, $type) argument
93 if ($this->isSafeFor($type, $expression, $env)) {
105 protected function preEscapeFilterNode(FilterExpression $filter, Environment $env) argument
109 $type = $env->getFilter($name)->getPreEscape();
115 if ($this->isSafeFor($type, $node, $env)) {
124 protected function isSafeFor($type, \Twig_NodeInterface $expression, $env) argument
130 $this->traverser = new NodeTraverser($env, [$this->safeAnalysis]);
142 protected function needEscaping(Environment $env) argument