src/Core/ApplicationKernel.php
private function bundlesFromConfiguration(): array
    {
        $bundles = [];

        /** @var string[] $packageBundles */
        foreach ($this->readBundleConfiguration() as $packageBundles) {
            foreach ($packageBundles as $bundleClassName) {
                if (class_exists($bundleClassName)) {
                    $bundles[] = new $bundleClassName();
                }
            }
        }

        return $bundles;
    }
private function bundlesFromConfiguration(): array
    {
        $bundles = [];

        /** @var string[] $packageBundles */
        foreach ($this->readBundleConfiguration() as $packageBundles) {
            foreach ($packageBundles as $bundleClassName) {
                if (class_exists($bundleClassName)) {
                    $bundles[] = new $bundleClassName();
                }
            }
        }

        return $bundles;
    }
private function bundlesFromConfiguration ( ) : array { $ bundles = [ ] ; /** @var string[] $packageBundles */ foreach ( $ this -> readBundleConfiguration ( ) as $ packageBundles ) { foreach ( $ packageBundles as $ bundleClassName ) { if ( class_exists ( $ bundleClassName ) ) { $ bundles [ ] = new $ bundleClassName ( ) ; } } } return $ bundles ; }
Reads the bundles from the bundle configuration file and instantiates them.

@return Bundle[]
Reads the bundles from the bundle configuration file and instantiates them .