12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace Symfony\Bundle\TwigBundle;
- use Symfony\Framework\Bundle\Bundle;
- use Symfony\Components\DependencyInjection\ParameterBag\ParameterBagInterface;
- use Symfony\Components\DependencyInjection\ContainerBuilder;
- use Symfony\Bundle\TwigBundle\DependencyInjection\TwigExtension;
- /*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- /**
- * Bundle.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
- class TwigBundle extends Bundle
- {
- /**
- * Customizes the Container instance.
- *
- * @param ParameterBagInterface $parameterBag A ParameterBagInterface instance
- *
- * @return ContainerBuilder A ContainerBuilder instance
- */
- public function buildContainer(ParameterBagInterface $parameterBag)
- {
- ContainerBuilder::registerExtension(new TwigExtension());
- }
- }
|