Source of file TwigRenderer.php
Size: 0,991 Bytes - Last Modified: 2013-07-17T08:22:21+02:00
/home/theseer/Downloads/Symfony/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Form/TwigRenderer.php
123456789101112131415161718192021222324252627282930313233343536373839404142 | <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bridge\Twig\Form; use Symfony\Component\Form\FormRenderer; use Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface; /** * @author Bernhard Schussek <bschussek@gmail.com> */ class TwigRenderer extends FormRenderer implements TwigRendererInterface { /** * @var TwigRendererEngineInterface */ private $engine; public function __construct(TwigRendererEngineInterface $engine, CsrfProviderInterface $csrfProvider = null) { parent::__construct($engine, $csrfProvider); $this->engine = $engine; } /** * {@inheritdoc} */ public function setEnvironment(\Twig_Environment $environment) { $this->engine->setEnvironment($environment); } } |