Skip to content

Commit 888907c

Browse files
committed
yet another fix
1 parent 5b87997 commit 888907c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DependencyInjection/Compiler/TranslationExtractorPass.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public function process(ContainerBuilder $container)
2929
$definition = $container->getDefinition('translation.extractor');
3030

3131
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+
3236
$definition->addMethodCall('addExtractor', array($attributes[0]['alias'], new Reference($id)));
3337
}
3438
}

0 commit comments

Comments
 (0)