bundles/mldev-account-bundle/src/MLDevAccountBundle.php line 10

Open in your IDE?
  1. <?php
  2. namespace MLDev\AccountBundle;
  3. use MLDev\AccountBundle\DependencyInjection\Compiler\ResolveTargetEntitiesCompilerPass;
  4. use MLDev\AccountBundle\DependencyInjection\MLDevAccountExtension;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Symfony\Component\HttpKernel\Bundle\Bundle;
  7. class MLDevAccountBundle extends Bundle
  8. {
  9.     public function getPath(): string
  10.     {
  11.         return dirname(__DIR__);
  12.     }
  13.     public function getContainerExtension(): MLDevAccountExtension
  14.     {
  15.         return new MLDevAccountExtension();
  16.     }
  17.     /**
  18.      * @param ContainerBuilder $container
  19.      */
  20.     public function build(ContainerBuilder $container)
  21.     {
  22.         parent::build($container);
  23.         $container->addCompilerPass(new ResolveTargetEntitiesCompilerPass());
  24.     }
  25. }