Classes/Helper/BundleHelper.php
public static function generateSymfonyBundles($path, &$bundles)
    {
        $bundleRoot     = dirname($path) . self::$bundlePath;
        $bundelPatteren = $bundleRoot . '/*/*/*Bundle.php';
        $bundleFiles    = glob($bundelPatteren);

        if (is_array($bundleFiles) && count($bundleFiles)) {
            foreach ($bundleFiles as $bundleFile) {
                // coreBundle muss seperat registriert werden, damit der BundleHelper gefunden wird!
                if (!substr_count($bundleFile, 'src/con4gis/CoreBundle/con4gisCoreBundle.php')) {
                    $class     = str_replace($bundleRoot . '/', '', $bundleFile);
                    $class     = str_replace('/', '\\', $class);
                    $class     = str_replace('.php', '', $class);
                    $bundles[] = new $class();
                }
            }
        }

        return $bundles;
    }
public static function generateSymfonyBundles($path, &$bundles)
    {
        $bundleRoot     = dirname($path) . self::$bundlePath;
        $bundelPatteren = $bundleRoot . '/*/*/*Bundle.php';
        $bundleFiles    = glob($bundelPatteren);

        if (is_array($bundleFiles) && count($bundleFiles)) {
            foreach ($bundleFiles as $bundleFile) {
                // coreBundle muss seperat registriert werden, damit der BundleHelper gefunden wird!
                if (!substr_count($bundleFile, 'src/con4gis/CoreBundle/con4gisCoreBundle.php')) {
                    $class     = str_replace($bundleRoot . '/', '', $bundleFile);
                    $class     = str_replace('/', '\\', $class);
                    $class     = str_replace('.php', '', $class);
                    $bundles[] = new $class();
                }
            }
        }

        return $bundles;
    }
Erstellt die Einträge der Bundles für den AppKernel.
@param $path
@param $bundles
@return array