protected function initializeBundles()
    {
        // init bundles
        $this->bundles = [];
        foreach ($this->registerBundles() as $bundle) {
            $name = $bundle->getName();
            if (isset($this->bundles[$name])) {
                throw new \LogicException(sprintf('Trying to register two bundles with the same name "%s"', $name));
            }
            $this->bundles[$name] = $bundle;
        }
    }
protected function initializeBundles()
    {
        // init bundles
        $this->bundles = [];
        foreach ($this->registerBundles() as $bundle) {
            $name = $bundle->getName();
            if (isset($this->bundles[$name])) {
                throw new \LogicException(sprintf('Trying to register two bundles with the same name "%s"', $name));
            }
            $this->bundles[$name] = $bundle;
        }
    }
protected function initializeBundles ( ) { // init bundles $ this -> bundles = [ ] ; foreach ( $ this -> registerBundles ( ) as $ bundle ) { $ name = $ bundle -> getName ( ) ; if ( isset ( $ this -> bundles [ $ name ] ) ) { throw new \ LogicException ( sprintf ( 'Trying to register two bundles with the same name "%s"' , $ name ) ) ; } $ this -> bundles [ $ name ] = $ bundle ; } }
Initializes bundles.

@throws \LogicException if two bundles share a common name
Initializes bundles .