Skip to content

Commit

Permalink
Merge pull request #366 from formapro-forks/remove-path-option
Browse files Browse the repository at this point in the history
[1.0][Config] remove path option.
  • Loading branch information
makasim committed Mar 28, 2014
2 parents cd4c0e2 + 538afcb commit 93cbf43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public function getConfigTreeBuilder()
->prototype('array')
->fixXmlConfig('filter', 'filters')
->children()
->scalarNode('path')->end()
->scalarNode('quality')->defaultValue(100)->end()
->scalarNode('cache')->defaultNull()->end()
->scalarNode('data_loader')->defaultNull()->end()
Expand Down
5 changes: 0 additions & 5 deletions DependencyInjection/LiipImagineExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ public function load(array $configs, ContainerBuilder $container)
$container->setParameter('liip_imagine.formats', $config['formats']);
$container->setParameter('liip_imagine.cache.resolver.default', $config['cache']);

foreach ($config['filter_sets'] as $filter => $options) {
if (isset($options['path'])) {
$config['filter_sets'][$filter]['path'] = '/'.trim($options['path'], '/');
}
}
$container->setParameter('liip_imagine.filter_sets', $config['filter_sets']);

$container->setParameter('liip_imagine.data.loader.default', $config['data_loader']);
Expand Down
6 changes: 6 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ Upgrade
* [Filter] `FilterManager::applyFilter` now return instance of `BinaryInterface`.
* [Filter] `FilterManager::applyFilter` first argument was changed from Image instance to BinaryInterface one.
* [Filter] `FilterManager::get` was removed.
* [Configuration] `liip_imagine.filter_sets.path` option was removed.
* [Configuration] `liip_imagine.filter_sets.format` option was removed.
* [Configuration] `liip_imagine.cache_mkdir_mode` option was removed.
* [Configuration] `liip_imagine.cache_prefix` option was removed.
* [Configuration] `liip_imagine.web_root` option was removed.
* [Configuration] `liip_imagine.cache` default value was changed from `web_path`to `default`.

0 comments on commit 93cbf43

Please sign in to comment.