SonataAdminBundle.php 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of the Sonata project.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  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 Sonata\AdminBundle;
  11. use Sonata\AdminBundle\DependencyInjection\Compiler\GlobalVariablesCompilerPass;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Sonata\AdminBundle\DependencyInjection\Compiler\AddDependencyCallsCompilerPass;
  15. use Sonata\AdminBundle\DependencyInjection\Compiler\AddFilterTypeCompilerPass;
  16. use Sonata\AdminBundle\DependencyInjection\Compiler\ExtensionCompilerPass;
  17. class SonataAdminBundle extends Bundle
  18. {
  19. /**
  20. * {@inheritDoc}
  21. */
  22. public function build(ContainerBuilder $container)
  23. {
  24. $container->addCompilerPass(new AddDependencyCallsCompilerPass());
  25. $container->addCompilerPass(new AddFilterTypeCompilerPass());
  26. $container->addCompilerPass(new ExtensionCompilerPass());
  27. $container->addCompilerPass(new GlobalVariablesCompilerPass());
  28. }
  29. }