Skip to content

Commit

Permalink
Merge pull request #102 from Spea/master
Browse files Browse the repository at this point in the history
Renamed "auto_clear_cache" to "cache_clearer"
  • Loading branch information
lsmith77 committed Aug 24, 2012
2 parents f67aaa4 + 2b979cc commit fddd850
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/LiipImagineExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/LiipImagineExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fddd850

Please sign in to comment.