TwigExtraBundle.php 659 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) Fabien Potencier
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Twig\Extra\TwigExtraBundle;
  11. use Symfony\Component\DependencyInjection\ContainerBuilder;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. use Twig\Extra\TwigExtraBundle\DependencyInjection\Compiler\MissingExtensionSuggestorPass;
  14. class TwigExtraBundle extends Bundle
  15. {
  16. public function build(ContainerBuilder $container)
  17. {
  18. parent::build($container);
  19. $container->addCompilerPass(new MissingExtensionSuggestorPass());
  20. }
  21. }