SonataDoctrineORMAdminBundle.php 1.0 KB

12345678910111213141516171819202122232425262728293031
  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\DoctrineORMAdminBundle;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Sonata\DoctrineORMAdminBundle\DependencyInjection\Compiler\AddGuesserCompilerPass;
  14. use Sonata\DoctrineORMAdminBundle\DependencyInjection\Compiler\AddTemplatesCompilerPass;
  15. use Sonata\DoctrineORMAdminBundle\DependencyInjection\Compiler\AddAuditEntityCompilerPass;
  16. class SonataDoctrineORMAdminBundle extends Bundle
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public function build(ContainerBuilder $container)
  22. {
  23. $container->addCompilerPass(new AddGuesserCompilerPass());
  24. $container->addCompilerPass(new AddTemplatesCompilerPass());
  25. $container->addCompilerPass(new AddAuditEntityCompilerPass());
  26. }
  27. }