protected function initializeBundles()
    {
        parent::initializeBundles();

        foreach ($this->registerBundles() as $bundle) {

            if (\method_exists($bundle, "extendBundle")) {
                $name = $bundle->getName();
                $extenBundle = $bundle->extendBundle();
                $this->bundleMap[$name][] = $this->bundles[$extenBundle];
            }
        }
    }