private function generateCustomConfigBundles($bundles) { $custom = ''; foreach ($bundles->getCollection() as $bundle) { if (null !== $bundle->getConfig()) { $custom .= $bundle->getConfig() . "\n"; } } return $custom; }