Classes/Helper/BundleHelper.php
public static function generateContaoBundles($path, &$bundles)
    {
        $bundelPatteren = dirname($path) . self::$extensionsPath . '/*';
        $dirs           = glob($bundelPatteren);

        foreach ($dirs as $dir) {
            $bundles[] = new ContaoModuleBundle(basename($dir), $path);
        }

        return $bundles;
    }
public static function generateContaoBundles($path, &$bundles)
    {
        $bundelPatteren = dirname($path) . self::$extensionsPath . '/*';
        $dirs           = glob($bundelPatteren);

        foreach ($dirs as $dir) {
            $bundles[] = new ContaoModuleBundle(basename($dir), $path);
        }

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