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\Form
;
14 use Symfony\Component\Form\FormRenderer
;
15 use Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface
;
18 * @author Bernhard Schussek <bschussek@gmail.com>
20 class TwigRenderer
extends FormRenderer
implements TwigRendererInterface
23 * @var TwigRendererEngineInterface
27 public function __construct(TwigRendererEngineInterface
$engine, CsrfProviderInterface
$csrfProvider = null)
29 parent
::__construct($engine, $csrfProvider);
31 $this->engine
= $engine;
37 public function setEnvironment(\Twig_Environment
$environment)
39 $this->engine
->setEnvironment($environment);