AsseticBundle.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /*
  3. * This file is part of the Symfony framework.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Symfony\Bundle\AsseticBundle;
  11. use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\AssetFactoryPass;
  12. use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\AssetManagerPass;
  13. use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\FilterManagerPass;
  14. use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\TemplatingPass;
  15. use Symfony\Component\DependencyInjection\ContainerBuilder;
  16. use Symfony\Component\HttpKernel\Bundle\Bundle;
  17. /**
  18. * Assetic integration.
  19. *
  20. * @author Kris Wallsmith <kris.wallsmith@symfony.com>
  21. */
  22. class AsseticBundle extends Bundle
  23. {
  24. public function build(ContainerBuilder $container)
  25. {
  26. parent::build($container);
  27. $container->addCompilerPass(new TemplatingPass());
  28. $container->addCompilerPass(new AssetFactoryPass());
  29. $container->addCompilerPass(new AssetManagerPass());
  30. $container->addCompilerPass(new FilterManagerPass());
  31. }
  32. }