processConfiguration(new Configuration(), $configs); $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('services.xml'); // Removes useless services if (!class_exists(ApiDoc::class)) { $container->removeDefinition('exsyst_api_doc.routing_extractors.nelmio_annotation'); } if (!class_exists(DocBlockFactory::class)) { $container->removeDefinition('exsyst_api_doc.routing_extractors.php_doc'); } } }