Skip to content
Browse files

do not allow rules to be overwritten, since there is no way to contro…

…l the order
  • Loading branch information...
1 parent 0ad7a76 commit 7d2b5f580e554bcba9c181ae08a3d439b4411e6c @lsmith77 lsmith77 committed
Showing with 2 additions and 1 deletion.
  1. +1 −0 DependencyInjection/Configuration.php
  2. +1 −1 DependencyInjection/LiipCacheControlExtension.php
View
1 DependencyInjection/Configuration.php
@@ -45,6 +45,7 @@ private function addRulesSection(ArrayNodeDefinition $rootNode)
->fixXmlConfig('rule', 'rules')
->children()
->arrayNode('rules')
+ ->cannotBeOverwritten()
->prototype('array')
->children()
->scalarNode('unless_role')->defaultNull()->end()
View
2 DependencyInjection/LiipCacheControlExtension.php
@@ -39,7 +39,7 @@ public function load(array $configs, ContainerBuilder $container)
unset(
$cache['path'],
$cache['domain']
- );
+ );
$container->getDefinition($this->getAlias().'.response_listener')
->addMethodCall('add', array($matcher, $cache));

0 comments on commit 7d2b5f5

Please sign in to comment.
Something went wrong with that request. Please try again.