Skip to content

Commit 84fa68a

Browse files
committed
Fix invalidation config
1 parent a25668c commit 84fa68a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DependencyInjection/FOSHttpCacheExtension.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function load(array $configs, ContainerBuilder $container)
7272
}
7373
} elseif (true === $config['tags']['enabled']) {
7474
// silently skip if set to auto
75-
throw new InvalidConfigurationException('The TagListener requires symfony/expression-language and needs the cache_manager to be configured');
75+
throw new InvalidConfigurationException('The TagSubscriber requires symfony/expression-language and needs the cache_manager to be configured');
7676
}
7777
}
7878

@@ -83,9 +83,9 @@ 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['tags']['enabled']) {
86+
} elseif (true === $config['invalidation']['enabled']) {
8787
// silently skip if set to auto
88-
throw new InvalidConfigurationException('The InvalidationListener requires symfony/expression-language and needs the cache_manager to be configured');
88+
throw new InvalidConfigurationException('The InvalidationSubscriber requires symfony/expression-language and needs the cache_manager to be configured');
8989
}
9090
}
9191

0 commit comments

Comments
 (0)