Skip to content

Commit

Permalink
Merge pull request #32 from shandyDev/zf3compat
Browse files Browse the repository at this point in the history
ZF3 compatibility fix: now config is case sensitive
  • Loading branch information
mrVrAlex authored Oct 27, 2016
2 parents 3408059 + ec412e1 commit fd9495d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/Imagine/Filter/FilterManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ class FilterManager implements FilterManagerInterface
public function __construct(
FilterOptionsInterface $filterOptions,
ServiceLocatorInterface $filterLoaderPluginManager
)
{
) {
$this->filterOptions = $filterOptions;
$this->filterLoaderPluginManager = $filterLoaderPluginManager;
}
Expand Down
5 changes: 5 additions & 0 deletions src/Imagine/Filter/Loader/FilterLoaderPluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];

Expand Down
5 changes: 5 additions & 0 deletions src/Imagine/Loader/LoaderPluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions src/Imagine/Resolver/ResolverManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit fd9495d

Please sign in to comment.