BundleDependenciesResolver.php
protected function getBundleInstances(
        KernelInterface $kernel,
        array $bundles
    ): array {
        $bundleStack = $this
            ->resolveAndReturnBundleDependencies(
                $kernel,
                $bundles
            );

        $builtBundles = [];
        foreach ($bundleStack as $bundle) {
            $builtBundles[] = $this
                ->getBundleDefinitionInstance($bundle);
        }

        return $builtBundles;
    }
protected function getBundleInstances(
        KernelInterface $kernel,
        array $bundles
    ): array {
        $bundleStack = $this
            ->resolveAndReturnBundleDependencies(
                $kernel,
                $bundles
            );

        $builtBundles = [];
        foreach ($bundleStack as $bundle) {
            $builtBundles[] = $this
                ->getBundleDefinitionInstance($bundle);
        }

        return $builtBundles;
    }
protected function getBundleInstances ( KernelInterface $ kernel , array $ bundles ) : array { $ bundleStack = $ this -> resolveAndReturnBundleDependencies ( $ kernel , $ bundles ) ; $ builtBundles = [ ] ; foreach ( $ bundleStack as $ bundle ) { $ builtBundles [ ] = $ this -> getBundleDefinitionInstance ( $ bundle ) ; } return $ builtBundles ; }
Get bundle instances given the namespace stack.

@param KernelInterface $kernel
@param array           $bundles

@return BundleInterface[]
Get bundle instances given the namespace stack .