$compiler->
raw(sprintf('$this->env->getExtension(\'%s\')',
$class));
} else { $compiler->
raw(sprintf('$this->extensions[\'%s\']',
ltrim($class, '\\'
)));
} $compiler->
raw(sprintf('->%s',
$callable[1
]));
} else { $compiler->
raw(sprintf('$this->env->get%s(\'%s\')->getCallable()',
ucfirst($this->
getAttribute('type'
)),
$this->
getAttribute('name'
)));
} } $this->
compileArguments($compiler);
} protected function compileArguments(Compiler
$compiler,
$isArray = false
): void
{ $compiler->
raw($isArray ? '[' : '('
);
$first = true;
if ($this->
hasAttribute('needs_environment'
) &&
$this->
getAttribute('needs_environment'
)) { $compiler->
raw('$this->env'
);
$first = false;
}