Permalink
Browse files

Renamed configuration option "auto_clear_cache" to "cache_clearer"

  • Loading branch information...
1 parent f67aaa4 commit 2b979cc52324afac06d5e0d7830bbe8155ddbf7c Martin Parsiegla committed Aug 24, 2012
@@ -32,7 +32,7 @@ public function getConfigTreeBuilder()
->scalarNode('cache_prefix')->defaultValue('/media/cache')->end()
->scalarNode('cache')->defaultValue('web_path')->end()
->scalarNode('cache_base_path')->defaultValue('')->end()
- ->booleanNode('auto_clear_cache')->defaultValue(true)->end()
+ ->booleanNode('cache_clearer')->defaultValue(true)->end()
->scalarNode('data_loader')->defaultValue('filesystem')->end()
->scalarNode('controller_action')->defaultValue('liip_imagine.controller:filterAction')->end()
->arrayNode('formats')
@@ -25,7 +25,7 @@ public function load(array $configs, ContainerBuilder $container)
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('imagine.xml');
- if ($config['auto_clear_cache']) {
+ if ($config['cache_clearer']) {
$loader->load('cache_clearer.xml');
}
View
@@ -169,7 +169,7 @@ liip_imagine:
data_root: %liip_imagine.web_root%
cache_prefix: /media/cache
cache: web_path
- auto_clear_cache true
+ cache_clearer: true
data_loader: filesystem
controller_action: liip_imagine.controller:filterAction
formats: []
@@ -213,7 +213,7 @@ There are several configuration options available:
default: web_path (which means the standard web_path resolver is used)
- - `auto_clear_cache` - Whether or not to clear the image cache when the `kernel.cache_clearer` event occurs.
+ - `cache_clearer` - Whether or not to clear the image cache when the `kernel.cache_clearer` event occurs.
This option doesn't have any effect in symfony < 2.1
default: true
@@ -99,7 +99,7 @@ protected function getFullConfig()
web_root: ../foo/bar
cache_prefix: /imagine/cache
cache: false
-auto_clear_cache: false
+cache_clearer: false
formats: ['json', 'xml', 'jpg', 'png', 'gif']
filter_sets:
small:

0 comments on commit 2b979cc

Please sign in to comment.