SonataAdminBundle.php 945 B

123456789101112131415161718192021222324252627
  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 Symfony\Component\HttpKernel\Bundle\Bundle;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Sonata\AdminBundle\DependencyInjection\Compiler\AddDependencyCallsCompilerPass;
  14. use Sonata\AdminBundle\DependencyInjection\Compiler\AddFilterTypeCompilerPass;
  15. use Sonata\AdminBundle\DependencyInjection\Compiler\ExtensionCompilerPass;
  16. class SonataAdminBundle extends Bundle
  17. {
  18. public function build(ContainerBuilder $container)
  19. {
  20. $container->addCompilerPass(new AddDependencyCallsCompilerPass());
  21. $container->addCompilerPass(new AddFilterTypeCompilerPass());
  22. $container->addCompilerPass(new ExtensionCompilerPass());
  23. }
  24. }