vendor/rawafed/admin-bundle/AdminBundle.php line 12

Open in your IDE?
  1. <?php
  2. namespace Rawafed\AdminBundle;
  3. use Symfony\Component\HttpKernel\Bundle\Bundle;
  4. use Symfony\Component\HttpKernel\KernelInterface;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Rawafed\AdminBundle\DependencyInjection\Compiler\DashboardCompilerPass;
  7. use Rawafed\AdminBundle\DependencyInjection\Compiler\MenuCompilerPass;
  8. use Rawafed\AdminBundle\DependencyInjection\Compiler\WizardsCompilerPass;
  9. class AdminBundle extends Bundle
  10. {
  11.     protected $kernel;
  12.     public function __constructKernelInterface $kernel null ) {
  13.         $this->kernel $kernel;
  14.     }
  15.     public function build(ContainerBuilder $container) {
  16.         parent::build($container);
  17.         $container->addCompilerPass(new DashboardCompilerPass());
  18.         $container->addCompilerPass(new MenuCompilerPass($this->kernel));
  19.         $container->addCompilerPass(new WizardsCompilerPass());
  20.     }
  21. }