Skip to content

Commit

Permalink
Merge pull request #113 from FriendsOfSymfony/fix-config-invalidation
Browse files Browse the repository at this point in the history
Fix invalidation config
  • Loading branch information
dbu committed Jul 25, 2014
2 parents a25668c + 84fa68a commit 4f4bcea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DependencyInjection/FOSHttpCacheExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function load(array $configs, ContainerBuilder $container)
}
} 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');
throw new InvalidConfigurationException('The TagSubscriber requires symfony/expression-language and needs the cache_manager to be configured');
}
}

Expand All @@ -83,9 +83,9 @@ public function load(array $configs, ContainerBuilder $container)
if (!empty($config['invalidation']['rules'])) {
$this->loadInvalidatorRules($container, $config['invalidation']['rules']);
}
} elseif (true === $config['tags']['enabled']) {
} elseif (true === $config['invalidation']['enabled']) {
// silently skip if set to auto
throw new InvalidConfigurationException('The InvalidationListener requires symfony/expression-language and needs the cache_manager to be configured');
throw new InvalidConfigurationException('The InvalidationSubscriber requires symfony/expression-language and needs the cache_manager to be configured');
}
}

Expand Down

0 comments on commit 4f4bcea

Please sign in to comment.