comparison vendor/symfony/translation/DependencyInjection/TranslationDumperPass.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
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 }