From ecc4fb989721ac527d8b3e9b8ca0ed43a78b8f78 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 29 Oct 2013 14:41:03 +0100 Subject: [PATCH] Keep order of loaders, fixes #265 build --- DependencyInjection/LoadExtractorParsersPass.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DependencyInjection/LoadExtractorParsersPass.php b/DependencyInjection/LoadExtractorParsersPass.php index 4626496..cee5b58 100644 --- a/DependencyInjection/LoadExtractorParsersPass.php +++ b/DependencyInjection/LoadExtractorParsersPass.php @@ -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'); + } } }