Skip to content

Commit

Permalink
Merge pull request #112 from FriendsOfSymfony/fix-tag-config
Browse files Browse the repository at this point in the history
Fix tags config
  • Loading branch information
dbu committed Jul 25, 2014
2 parents 540a455 + c21838e commit a25668c
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 a25668c

Please sign in to comment.