Skip to content

Commit c21838e

Browse files
committed
Fix tags config
Fix "PHP Notice: Undefined index: tag_listener in friendsofsymfony/http-cache-bundle/DependencyInjection/FOSHttpCacheExtension.php on line 73" when ExpressionLanguage is not available.
1 parent 540a455 commit c21838e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DependencyInjection/FOSHttpCacheExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function load(array $configs, ContainerBuilder $container)
7070
if (!empty($config['tags']['rules'])) {
7171
$this->loadTagRules($container, $config['tags']['rules']);
7272
}
73-
} elseif (true === $config['tag_listener']['enabled']) {
73+
} elseif (true === $config['tags']['enabled']) {
7474
// silently skip if set to auto
7575
throw new InvalidConfigurationException('The TagListener requires symfony/expression-language and needs the cache_manager to be configured');
7676
}
@@ -83,7 +83,7 @@ public function load(array $configs, ContainerBuilder $container)
8383
if (!empty($config['invalidation']['rules'])) {
8484
$this->loadInvalidatorRules($container, $config['invalidation']['rules']);
8585
}
86-
} elseif (true === $config['tag_listener']['enabled']) {
86+
} elseif (true === $config['tags']['enabled']) {
8787
// silently skip if set to auto
8888
throw new InvalidConfigurationException('The InvalidationListener requires symfony/expression-language and needs the cache_manager to be configured');
8989
}

0 commit comments

Comments
 (0)