summaryrefslogtreecommitdiff
path: root/vendor/symfony/cache/DependencyInjection/CachePoolPass.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/cache/DependencyInjection/CachePoolPass.php')
-rw-r--r--vendor/symfony/cache/DependencyInjection/CachePoolPass.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/vendor/symfony/cache/DependencyInjection/CachePoolPass.php b/vendor/symfony/cache/DependencyInjection/CachePoolPass.php
index 92e2017e6f..b1af39755e 100644
--- a/vendor/symfony/cache/DependencyInjection/CachePoolPass.php
+++ b/vendor/symfony/cache/DependencyInjection/CachePoolPass.php
@@ -54,15 +54,15 @@ class CachePoolPass implements CompilerPassInterface
}
$seed .= '.'.$container->getParameter('kernel.container_class');
- $pools = array();
- $clearers = array();
- $attributes = array(
+ $pools = [];
+ $clearers = [];
+ $attributes = [
'provider',
'name',
'namespace',
'default_lifetime',
'reset',
- );
+ ];
foreach ($container->findTaggedServiceIds($this->cachePoolTag) as $id => $tags) {
$adapter = $pool = $container->getDefinition($id);
if ($pool->isAbstract()) {
@@ -97,7 +97,7 @@ class CachePoolPass implements CompilerPassInterface
// no-op
} elseif ('reset' === $attr) {
if ($tags[0][$attr]) {
- $pool->addTag($this->kernelResetTag, array('method' => $tags[0][$attr]));
+ $pool->addTag($this->kernelResetTag, ['method' => $tags[0][$attr]]);
}
} elseif ('namespace' !== $attr || ArrayAdapter::class !== $adapter->getClass()) {
$pool->replaceArgument($i++, $tags[0][$attr]);
@@ -156,8 +156,8 @@ class CachePoolPass implements CompilerPassInterface
if (!$container->hasDefinition($name = '.cache_connection.'.ContainerBuilder::hash($dsn))) {
$definition = new Definition(AbstractAdapter::class);
$definition->setPublic(false);
- $definition->setFactory(array(AbstractAdapter::class, 'createConnection'));
- $definition->setArguments(array($dsn, array('lazy' => true)));
+ $definition->setFactory([AbstractAdapter::class, 'createConnection']);
+ $definition->setArguments([$dsn, ['lazy' => true]]);
$container->setDefinition($name, $definition);
}
}