From ec412e18c2ddcc38f45e473b0f19e1a03e4a9d2a Mon Sep 17 00:00:00 2001 From: Alexandr Vronskiy Date: Thu, 27 Oct 2016 21:08:31 +0300 Subject: [PATCH] ZF3 compatibility fix: now config is case sensitive --- src/Imagine/Filter/FilterManager.php | 3 +-- src/Imagine/Filter/Loader/FilterLoaderPluginManager.php | 5 +++++ src/Imagine/Loader/LoaderPluginManager.php | 5 +++++ src/Imagine/Resolver/ResolverManager.php | 5 +++++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/Imagine/Filter/FilterManager.php b/src/Imagine/Filter/FilterManager.php index f9c49f3..460b554 100644 --- a/src/Imagine/Filter/FilterManager.php +++ b/src/Imagine/Filter/FilterManager.php @@ -27,8 +27,7 @@ class FilterManager implements FilterManagerInterface public function __construct( FilterOptionsInterface $filterOptions, ServiceLocatorInterface $filterLoaderPluginManager - ) - { + ) { $this->filterOptions = $filterOptions; $this->filterLoaderPluginManager = $filterLoaderPluginManager; } diff --git a/src/Imagine/Filter/Loader/FilterLoaderPluginManager.php b/src/Imagine/Filter/Loader/FilterLoaderPluginManager.php index 021699c..3c2ca9c 100644 --- a/src/Imagine/Filter/Loader/FilterLoaderPluginManager.php +++ b/src/Imagine/Filter/Loader/FilterLoaderPluginManager.php @@ -11,9 +11,14 @@ class FilterLoaderPluginManager extends AbstractPluginManager protected $instanceOf = LoaderInterface::class; protected $aliases = [ + 'Crop' => Crop::class, 'crop' => Crop::class, + 'RelativeResize' => RelativeResize::class, + 'relativeResize' => RelativeResize::class, 'relativeresize' => RelativeResize::class, + 'Resize' => Resize::class, 'resize' => Resize::class, + 'Thumbnail' => Thumbnail::class, 'thumbnail' => Thumbnail::class, ]; diff --git a/src/Imagine/Loader/LoaderPluginManager.php b/src/Imagine/Loader/LoaderPluginManager.php index b99562c..8ba1cea 100644 --- a/src/Imagine/Loader/LoaderPluginManager.php +++ b/src/Imagine/Loader/LoaderPluginManager.php @@ -11,6 +11,11 @@ class LoaderPluginManager extends AbstractPluginManager { protected $instanceOf = LoaderInterface::class; + protected $aliases = [ + 'FileSystem' => 'filesystem', + 'Simple' => 'simple', + ]; + protected $factories = [ 'filesystem' => FileSystemLoaderFactory::class, 'simple' => SimpleFileSystemLoaderFactory::class, diff --git a/src/Imagine/Resolver/ResolverManager.php b/src/Imagine/Resolver/ResolverManager.php index aaca0a7..b0c8a90 100644 --- a/src/Imagine/Resolver/ResolverManager.php +++ b/src/Imagine/Resolver/ResolverManager.php @@ -15,6 +15,11 @@ class ResolverManager extends AbstractPluginManager */ protected $aliases = [ 'image_path_stack' => 'imagepathstack', + 'imagePathStack' => 'imagepathstack', + 'ImagePathStack' => 'imagepathstack', + 'image_map' => 'imagemap', + 'imageMap' => 'imagemap', + 'ImageMap' => 'imagemap', ]; protected $factories = [