protected function registerBundleDependencies(ContainerBuilder $container)
    {
        if (true === $this->booted) {
            return;
        }

        $this->bundles = $container->getParameter('kernel.bundles');

        if ($this->createBundles($this->getBundleDependencies())) {
            $container->setParameter('kernel.bundles', $this->bundles);

            $this->initializeBundles($container);

            $pass = new Compiler\ExtensionLoadPass($this->instances);

            $container->addCompilerPass($pass);
        }

        $this->booted = true;
    }