Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/translation/DependencyInjection/TranslationDumperPass.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
9 * file that was distributed with this source code. | 9 * file that was distributed with this source code. |
10 */ | 10 */ |
11 | 11 |
12 namespace Symfony\Component\Translation\DependencyInjection; | 12 namespace Symfony\Component\Translation\DependencyInjection; |
13 | 13 |
14 use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
15 use Symfony\Component\DependencyInjection\ContainerBuilder; | |
14 use Symfony\Component\DependencyInjection\Reference; | 16 use Symfony\Component\DependencyInjection\Reference; |
15 use Symfony\Component\DependencyInjection\ContainerBuilder; | |
16 use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
17 | 17 |
18 /** | 18 /** |
19 * Adds tagged translation.formatter services to translation writer. | 19 * Adds tagged translation.formatter services to translation writer. |
20 */ | 20 */ |
21 class TranslationDumperPass implements CompilerPassInterface | 21 class TranslationDumperPass implements CompilerPassInterface |
36 } | 36 } |
37 | 37 |
38 $definition = $container->getDefinition($this->writerServiceId); | 38 $definition = $container->getDefinition($this->writerServiceId); |
39 | 39 |
40 foreach ($container->findTaggedServiceIds($this->dumperTag, true) as $id => $attributes) { | 40 foreach ($container->findTaggedServiceIds($this->dumperTag, true) as $id => $attributes) { |
41 $definition->addMethodCall('addDumper', array($attributes[0]['alias'], new Reference($id))); | 41 $definition->addMethodCall('addDumper', [$attributes[0]['alias'], new Reference($id)]); |
42 } | 42 } |
43 } | 43 } |
44 } | 44 } |