Skip to content

Commit

Permalink
Fix tags config
Browse files Browse the repository at this point in the history
Fix "PHP Notice:  Undefined index: tag_listener in friendsofsymfony/http-cache-bundle/DependencyInjection/FOSHttpCacheExtension.php
on line 73" when ExpressionLanguage is not available.
  • Loading branch information
ddeboer committed Jul 25, 2014
1 parent 540a455 commit c21838e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/FOSHttpCacheExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function load(array $configs, ContainerBuilder $container)
if (!empty($config['tags']['rules'])) {
$this->loadTagRules($container, $config['tags']['rules']);
}
} elseif (true === $config['tag_listener']['enabled']) {
} elseif (true === $config['tags']['enabled']) {
// silently skip if set to auto
throw new InvalidConfigurationException('The TagListener requires symfony/expression-language and needs the cache_manager to be configured');
}
Expand All @@ -83,7 +83,7 @@ public function load(array $configs, ContainerBuilder $container)
if (!empty($config['invalidation']['rules'])) {
$this->loadInvalidatorRules($container, $config['invalidation']['rules']);
}
} elseif (true === $config['tag_listener']['enabled']) {
} elseif (true === $config['tags']['enabled']) {
// silently skip if set to auto
throw new InvalidConfigurationException('The InvalidationListener requires symfony/expression-language and needs the cache_manager to be configured');
}
Expand Down

0 comments on commit c21838e

Please sign in to comment.