<?php
namespace Moto\Twig\Widgets; use Twig_Compiler; use Twig_Node; class WidgetNode extends Twig_Node { protected $_widget = null; public function __construct($widget, Twig_Node $body, $lineno, $tag = null) { $this->_widget = $widget; parent::__construct(array('body' => $body), array(), $lineno, $tag); } public function compile(Twig_Compiler $compiler) { $compiler->addDebugInfo($this); $compiler ->indent() ->write("\n") ->outdent() ; } } 