TwigBundle.php 1.2 KB

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