vendor/kunstmaan/admin-bundle/KunstmaanAdminBundle.php line 21

Open in your IDE?
  1. <?php
  2. namespace Kunstmaan\AdminBundle;
  3. use Kunstmaan\AdminBundle\DependencyInjection\Compiler\AddLogProcessorsCompilerPass;
  4. use Kunstmaan\AdminBundle\DependencyInjection\Compiler\AdminPanelCompilerPass;
  5. use Kunstmaan\AdminBundle\DependencyInjection\Compiler\ConsoleCompilerPass;
  6. use Kunstmaan\AdminBundle\DependencyInjection\Compiler\DataCollectorPass;
  7. use Kunstmaan\AdminBundle\DependencyInjection\Compiler\DeprecateClassParametersPass;
  8. use Kunstmaan\AdminBundle\DependencyInjection\Compiler\DomainConfigurationPass;
  9. use Kunstmaan\AdminBundle\DependencyInjection\Compiler\EnablePermissionsPass;
  10. use Kunstmaan\AdminBundle\DependencyInjection\Compiler\InjectUntrackedTokenStorageCompilerPass;
  11. use Kunstmaan\AdminBundle\DependencyInjection\Compiler\MenuCompilerPass;
  12. use Kunstmaan\AdminBundle\DependencyInjection\KunstmaanAdminExtension;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. /**
  16.  * KunstmaanAdminBundle
  17.  */
  18. class KunstmaanAdminBundle extends Bundle
  19. {
  20.     /**
  21.      * @param ContainerBuilder $container A ContainerBuilder instance
  22.      */
  23.     public function build(ContainerBuilder $container)
  24.     {
  25.         parent::build($container);
  26.         $container->addCompilerPass(new MenuCompilerPass());
  27.         $container->addCompilerPass(new AdminPanelCompilerPass());
  28.         $container->addCompilerPass(new AddLogProcessorsCompilerPass());
  29.         $container->addCompilerPass(new DataCollectorPass());
  30.         $container->addCompilerPass(new DomainConfigurationPass());
  31.         $container->addCompilerPass(new ConsoleCompilerPass());
  32.         $container->addCompilerPass(new InjectUntrackedTokenStorageCompilerPass());
  33.         $container->addCompilerPass(new EnablePermissionsPass());
  34.         $container->addCompilerPass(new DeprecateClassParametersPass());
  35.         $container->registerExtension(new KunstmaanAdminExtension());
  36.     }
  37. }