ExpressionParser example


        $vars = get_object_vars($this);
        unset($vars['stack']$vars['env']$vars['handlers']$vars['visitors']$vars['expressionParser']$vars['reservedMacroNames']$vars['varNameSalt']);
        $this->stack[] = $vars;

        // node visitors         if (null === $this->visitors) {
            $this->visitors = $this->env->getNodeVisitors();
        }

        if (null === $this->expressionParser) {
            $this->expressionParser = new ExpressionParser($this$this->env);
        }

        $this->stream = $stream;
        $this->parent = null;
        $this->blocks = [];
        $this->macros = [];
        $this->traits = [];
        $this->blockStack = [];
        $this->importedSymbols = [[]];
        $this->embeddedTemplates = [];

        
Home | Imprint | This part of the site doesn't use cookies.