]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/symfony/twig-bridge/Symfony/Bridge/Twig/Node/FormThemeNode.php
329ab86fe089a18723c0948479f22e4e3585c553
4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Bridge\Twig\Node
;
15 * @author Fabien Potencier <fabien@symfony.com>
17 class FormThemeNode
extends \Twig_Node
19 public function __construct(\Twig_NodeInterface
$form, \Twig_NodeInterface
$resources, $lineno, $tag = null)
21 parent
::__construct(array('form' => $form, 'resources' => $resources), array(), $lineno, $tag);
25 * Compiles the node to PHP.
27 * @param \Twig_Compiler $compiler A Twig_Compiler instance
29 public function compile(\Twig_Compiler
$compiler)
33 ->write('$this->env->getExtension(\'form\')->renderer->setTheme(')
34 ->subcompile($this->getNode('form'))
36 ->subcompile($this->getNode('resources'))