Searched refs:getEnvironment (Results 1 – 16 of 16) sorted by relevance
79 return new Compiler($environment ?? $this->getEnvironment());87 protected function getEnvironment() function in Twig\\Test\\NodeTestCase
34 if ($compiler->getEnvironment()->useYield()) {
32 $useYield = $compiler->getEnvironment()->useYield();
196 …->write('class '.$compiler->getEnvironment()->getTemplateClass($this->getSourceContext()->getName(…511 … ->string($compiler->getEnvironment()->isDebug() ? $this->getSourceContext()->getCode() : '')
38 …$op = $this->parser->getEnvironment()->getExpressionParsers()->getByClass(FilterExpressionParser::…
43 $exists = null !== $this->parser->getEnvironment()->$method($name);
69 …$this->setAttribute('twig_callable', $compiler->getEnvironment()->getTest($this->getAttribute('nam…
73 $this->setAttribute('twig_callable', $compiler->getEnvironment()->getFunction($name));
71 …if ($this->getAttribute('ignore_strict_check') || !$compiler->getEnvironment()->isStrictVariables(…
76 $this->setAttribute('twig_callable', $compiler->getEnvironment()->getFilter($name));
51 $env = $compiler->getEnvironment();
54 if (!$compiler->getEnvironment()->hasExtension($class)) {
68 …', [], \\Twig\\Template::ANY_CALL, false, false, ')->repr($compiler->getEnvironment()->hasExtensio…
37 public function getEnvironment(): Environment function in Twig\\Compiler
68 public function getEnvironment(): Environment function in Twig\\Parser
220 * Mark `Twig\Test\NodeTestCase::getEnvironment()` as final, override `createEnvironment()` instead.