<?php
namespace Rawafed\AdminBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Rawafed\AdminBundle\DependencyInjection\Compiler\DashboardCompilerPass;
use Rawafed\AdminBundle\DependencyInjection\Compiler\MenuCompilerPass;
use Rawafed\AdminBundle\DependencyInjection\Compiler\WizardsCompilerPass;
class AdminBundle extends Bundle
{
protected $kernel;
public function __construct( KernelInterface $kernel = null ) {
$this->kernel = $kernel;
}
public function build(ContainerBuilder $container) {
parent::build($container);
$container->addCompilerPass(new DashboardCompilerPass());
$container->addCompilerPass(new MenuCompilerPass($this->kernel));
$container->addCompilerPass(new WizardsCompilerPass());
}
}