Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b672d39

Browse files
committed
Removed over-zealous configuration checks
1 parent af674c6 commit b672d39

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

DependencyInjection/Configuration.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ public function getConfigTreeBuilder()
7878
throw new InvalidConfigurationException('You need to configure a proxy_client to get the cache_manager needed for tag handling.');
7979
})
8080
->end()
81-
->validate()
82-
->ifTrue(function ($v) {return $v['tags']['rules'] && !$v['tags']['enabled'];})
83-
->thenInvalid('You need to enable the cache_manager and tags to use rules.')
84-
->end()
8581
->validate()
8682
->ifTrue(function ($v) {return $v['invalidation']['enabled'] && !$v['cache_manager']['enabled'];})
8783
->then(function ($v) {
@@ -93,10 +89,6 @@ public function getConfigTreeBuilder()
9389
throw new InvalidConfigurationException('You need to configure a proxy_client to get the cache_manager needed for invalidation handling.');
9490
})
9591
->end()
96-
->validate()
97-
->ifTrue(function ($v) {return $v['invalidation']['rules'] && !$v['invalidation']['enabled'];})
98-
->thenInvalid('You need to enable the cache_manager and invalidation to use rules.')
99-
->end()
10092
->validate()
10193
->ifTrue(function ($v) {
10294
return isset($v['test'])

0 commit comments

Comments
 (0)