Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed "auto_clear_cache" to "cache_clearer" #102

Merged
merged 1 commit into from
Aug 24, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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