We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b87997 commit 888907cCopy full SHA for 888907c
DependencyInjection/Compiler/TranslationExtractorPass.php
@@ -29,6 +29,10 @@ public function process(ContainerBuilder $container)
29
$definition = $container->getDefinition('translation.extractor');
30
31
foreach ($container->findTaggedServiceIds('translation.extractor') as $id => $attributes) {
32
+ if (!isset($attributes[0]['alias'])) {
33
+ throw new \RuntimeException(sprintf('The alias for the tag "translation.extractor" of service "%s" must be set.', $id));
34
+ }
35
+
36
$definition->addMethodCall('addExtractor', array($attributes[0]['alias'], new Reference($id)));
37
}
38
0 commit comments