processConfiguration($configuration, $configs); $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('services.yml'); } /** * Declare the entity Report, as a customizable entity (can add custom fields) */ public function declareReportAsCustomizable(ContainerBuilder $container) { $bundles = $container->getParameter('kernel.bundles'); if (!isset($bundles['ChillCustomFieldsBundle'])) { throw new MissingBundleException('ChillCustomFieldsBundle'); } $customizables_entities['customizables_entities'][] = array('class' => 'Chill\ReportBundle\Entity\Report', 'name' => 'ReportName'); $container->prependExtensionConfig('chill_custom_fields', $customizables_entities); } public function prepend(ContainerBuilder $container) { $this->declareReportAsCustomizable($container); } }