updated packages

This commit is contained in:
2019-05-18 09:06:43 +00:00
parent 901d16349e
commit e9487fa58a
2025 changed files with 30366 additions and 49653 deletions

View File

@@ -39,8 +39,8 @@ class TranslatorPass implements CompilerPassInterface
return;
}
$loaders = array();
$loaderRefs = array();
$loaders = [];
$loaderRefs = [];
foreach ($container->findTaggedServiceIds($this->loaderTag, true) as $id => $attributes) {
$loaderRefs[$id] = new Reference($id);
$loaders[$id][] = $attributes[0]['alias'];
@@ -53,7 +53,7 @@ class TranslatorPass implements CompilerPassInterface
$definition = $container->getDefinition($this->readerServiceId);
foreach ($loaders as $id => $formats) {
foreach ($formats as $format) {
$definition->addMethodCall('addLoader', array($format, $loaderRefs[$id]));
$definition->addMethodCall('addLoader', [$format, $loaderRefs[$id]]);
}
}
}