Mercurial > hg > cmmr2012-drupal-site
diff 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 |
line wrap: on
line diff
--- a/vendor/symfony/translation/DependencyInjection/TranslationDumperPass.php Thu Feb 28 11:14:44 2019 +0000 +++ b/vendor/symfony/translation/DependencyInjection/TranslationDumperPass.php Thu Feb 28 13:11:55 2019 +0000 @@ -11,9 +11,9 @@ namespace Symfony\Component\Translation\DependencyInjection; +use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; +use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Reference; -use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; /** * Adds tagged translation.formatter services to translation writer. @@ -38,7 +38,7 @@ $definition = $container->getDefinition($this->writerServiceId); foreach ($container->findTaggedServiceIds($this->dumperTag, true) as $id => $attributes) { - $definition->addMethodCall('addDumper', array($attributes[0]['alias'], new Reference($id))); + $definition->addMethodCall('addDumper', [$attributes[0]['alias'], new Reference($id)]); } } }