mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-13 04:59:24 +03:00
Keep order of loaders, fixes #265 build
This commit is contained in:
parent
6c2fd53edc
commit
ecc4fb9897
@ -18,11 +18,6 @@ class LoadExtractorParsersPass implements CompilerPassInterface
|
|||||||
{
|
{
|
||||||
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||||
|
|
||||||
// JMS may or may not be installed, if it is, load that config as well
|
|
||||||
if ($container->hasDefinition('jms_serializer.serializer')) {
|
|
||||||
$loader->load('services.jms.xml');
|
|
||||||
}
|
|
||||||
|
|
||||||
// forms may not be installed/enabled, if it is, load that config as well
|
// forms may not be installed/enabled, if it is, load that config as well
|
||||||
if ($container->hasDefinition('form.factory')) {
|
if ($container->hasDefinition('form.factory')) {
|
||||||
$loader->load('services.form.xml');
|
$loader->load('services.form.xml');
|
||||||
@ -32,5 +27,10 @@ class LoadExtractorParsersPass implements CompilerPassInterface
|
|||||||
if ($container->hasDefinition('validator.mapping.class_metadata_factory')) {
|
if ($container->hasDefinition('validator.mapping.class_metadata_factory')) {
|
||||||
$loader->load('services.validation.xml');
|
$loader->load('services.validation.xml');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// JMS may or may not be installed, if it is, load that config as well
|
||||||
|
if ($container->hasDefinition('jms_serializer.serializer')) {
|
||||||
|
$loader->load('services.jms.xml');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user