public function initializeBundles()
    {
        $config = $this->getContainer()->singleton('kernel.config');
        $routing = $this->getContainer()->singleton('kernel.routing');

        $this->bundles = $this->registerBundles();

        foreach ($this->bundles as $bundle) {
            $bundle->setContainer($this->getContainer());
            $bundle->registerRouting($routing, $this->getEnvironment());
            $bundle->registerConfiguration($config, $this->getEnvironment());
        }

        unset($config, $routing);
    }
public function initializeBundles()
    {
        $config = $this->getContainer()->singleton('kernel.config');
        $routing = $this->getContainer()->singleton('kernel.routing');

        $this->bundles = $this->registerBundles();

        foreach ($this->bundles as $bundle) {
            $bundle->setContainer($this->getContainer());
            $bundle->registerRouting($routing, $this->getEnvironment());
            $bundle->registerConfiguration($config, $this->getEnvironment());
        }

        unset($config, $routing);
    }
public function initializeBundles ( ) { $ config = $ this -> getContainer ( ) -> singleton ( 'kernel.config' ) ; $ routing = $ this -> getContainer ( ) -> singleton ( 'kernel.routing' ) ; $ this -> bundles = $ this -> registerBundles ( ) ; foreach ( $ this -> bundles as $ bundle ) { $ bundle -> setContainer ( $ this -> getContainer ( ) ) ; $ bundle -> registerRouting ( $ routing , $ this -> getEnvironment ( ) ) ; $ bundle -> registerConfiguration ( $ config , $ this -> getEnvironment ( ) ) ; } unset ( $ config , $ routing ) ; }
Initialize application register bundles.

@return void
Initialize application register bundles .