TwigBundle.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Symfony\Bundle\TwigBundle;
  3. use Symfony\Framework\Bundle\Bundle;
  4. use Symfony\Components\DependencyInjection\ParameterBag\ParameterBagInterface;
  5. use Symfony\Components\DependencyInjection\ContainerBuilder;
  6. use Symfony\Bundle\TwigBundle\DependencyInjection\TwigExtension;
  7. /*
  8. * This file is part of the Symfony package.
  9. *
  10. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  11. *
  12. * For the full copyright and license information, please view the LICENSE
  13. * file that was distributed with this source code.
  14. */
  15. /**
  16. * Bundle.
  17. *
  18. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  19. */
  20. class TwigBundle extends Bundle
  21. {
  22. /**
  23. * Customizes the Container instance.
  24. *
  25. * @param ParameterBagInterface $parameterBag A ParameterBagInterface instance
  26. *
  27. * @return ContainerBuilder A ContainerBuilder instance
  28. */
  29. public function buildContainer(ParameterBagInterface $parameterBag)
  30. {
  31. ContainerBuilder::registerExtension(new TwigExtension());
  32. }
  33. }