Keep order of loaders, fixes #265 build

This commit is contained in:
Jordi Boggiano 2013-10-29 14:41:03 +01:00
parent 6c2fd53edc
commit ecc4fb9897

View File

@ -18,11 +18,6 @@ class LoadExtractorParsersPass implements CompilerPassInterface
{
$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
if ($container->hasDefinition('form.factory')) {
$loader->load('services.form.xml');
@ -32,5 +27,10 @@ class LoadExtractorParsersPass implements CompilerPassInterface
if ($container->hasDefinition('validator.mapping.class_metadata_factory')) {
$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');
}
}
}