vendor/stof/doctrine-extensions-bundle/src/StofDoctrineExtensionsBundle.php line 10

Open in your IDE?
  1. <?php
  2. namespace Stof\DoctrineExtensionsBundle;
  3. use Stof\DoctrineExtensionsBundle\DependencyInjection\Compiler\ReaderPass;
  4. use Stof\DoctrineExtensionsBundle\DependencyInjection\Compiler\ValidateExtensionConfigurationPass;
  5. use Symfony\Component\HttpKernel\Bundle\Bundle;
  6. use Symfony\Component\DependencyInjection\ContainerBuilder;
  7. class StofDoctrineExtensionsBundle extends Bundle
  8. {
  9. /**
  10. * {@inheritdoc}
  11. *
  12. * @return void
  13. */
  14. public function build(ContainerBuilder $container)
  15. {
  16. $container->addCompilerPass(new ValidateExtensionConfigurationPass());
  17. $container->addCompilerPass(new ReaderPass());
  18. }
  19. }