public function addNodeVisitor(Twig_NodeVisitorInterface $visitor)
    {
        if ($this->extensionInitialized) {
            throw new LogicException('Unable to add a node visitor as extensions have already been initialized.');
        }

        $this->staging->addNodeVisitor($visitor);
    }
public function addNodeVisitor(Twig_NodeVisitorInterface $visitor)
    {
        if ($this->extensionInitialized) {
            throw new LogicException('Unable to add a node visitor as extensions have already been initialized.');
        }

        $this->staging->addNodeVisitor($visitor);
    }
public function addNodeVisitor ( Twig_NodeVisitorInterface $ visitor ) { if ( $ this -> extensionInitialized ) { throw new LogicException ( 'Unable to add a node visitor as extensions have already been initialized.' ) ; } $ this -> staging -> addNodeVisitor ( $ visitor ) ; }
Registers a Node Visitor.

@param Twig_NodeVisitorInterface $visitor A Twig_NodeVisitorInterface instance
Registers a Node Visitor .