diff --git a/DependencyInjection/Compiler/TranslatorPass.php b/DependencyInjection/Compiler/TranslatorPass.php
index 8cb5780f..ddab9fb8 100644
--- a/DependencyInjection/Compiler/TranslatorPass.php
+++ b/DependencyInjection/Compiler/TranslatorPass.php
@@ -2,6 +2,7 @@
namespace Lexik\Bundle\TranslationBundle\DependencyInjection\Compiler;
+use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Reference;
@@ -40,7 +41,7 @@ public function process(ContainerBuilder $container)
$serviceRefs = array_merge($loadersReferencesById, array('event_dispatcher' => new Reference('event_dispatcher')));
$container->findDefinition('lexik_translation.translator')
- ->replaceArgument(0, \Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass::register($container, $serviceRefs))
+ ->replaceArgument(0, ServiceLocatorTagPass::register($container, $serviceRefs))
->replaceArgument(3, $loaders);
} else {
$container->findDefinition('lexik_translation.translator')->replaceArgument(2, $loaders);
@@ -52,9 +53,9 @@ public function process(ContainerBuilder $container)
}
// exporters
- if ($container->hasDefinition('lexik_translation.exporter_collector')) {
+ if ($container->hasDefinition('Lexik\Bundle\TranslationBundle\Translation\Exporter\ExporterCollector')) {
foreach ($container->findTaggedServiceIds('lexik_translation.exporter') as $id => $attributes) {
- $container->getDefinition('lexik_translation.exporter_collector')->addMethodCall('addExporter', array($id, new Reference($id)));
+ $container->getDefinition('Lexik\Bundle\TranslationBundle\Translation\Exporter\ExporterCollector')->addMethodCall('addExporter', array($id, new Reference($id)));
}
}
}
diff --git a/Resources/config/services.xml b/Resources/config/services.xml
index b1c4d1e7..351f4c58 100644
--- a/Resources/config/services.xml
+++ b/Resources/config/services.xml
@@ -117,23 +117,27 @@
-
+
+
-
+
%lexik_translation.exporter.json.hierarchical_format%
+
-
+
%lexik_translation.exporter.yml.use_tree%
+
-
+
+