From 538afcb5f96ce365e3dad06ae96d4a80a53b5adc Mon Sep 17 00:00:00 2001 From: Maksim Kotlyar Date: Thu, 27 Mar 2014 09:40:38 +0200 Subject: [PATCH] [1.0][Config] remove path option. --- DependencyInjection/Configuration.php | 1 - DependencyInjection/LiipImagineExtension.php | 5 ----- UPGRADE.md | 6 ++++++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index a23d193a3..7621acd88 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -78,7 +78,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() diff --git a/DependencyInjection/LiipImagineExtension.php b/DependencyInjection/LiipImagineExtension.php index bb0acd556..5e4ceea09 100644 --- a/DependencyInjection/LiipImagineExtension.php +++ b/DependencyInjection/LiipImagineExtension.php @@ -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']); diff --git a/UPGRADE.md b/UPGRADE.md index 3bf2bd332..580e84e7a 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -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`. \ No newline at end of file