AsseticBundle.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the Symfony framework.
  4. *
  5. * (c) Fabien Potencier <fabien.potencier@symfony-project.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\AssetManagerPass;
  12. use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\FilterManagerPass;
  13. use Symfony\Bundle\AsseticBundle\DependencyInjection\Compiler\TemplatingPass;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. /**
  17. * Assetic integration.
  18. *
  19. * @author Kris Wallsmith <kris.wallsmith@symfony-project.com>
  20. */
  21. class AsseticBundle extends Bundle
  22. {
  23. public function build(ContainerBuilder $container)
  24. {
  25. parent::build($container);
  26. $container->addCompilerPass(new TemplatingPass());
  27. $container->addCompilerPass(new AssetManagerPass());
  28. $container->addCompilerPass(new FilterManagerPass());
  29. }
  30. }