From 5116fb6242b9074893f6bd10e29d1dd82c4b7e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=81opaci=C5=84ski?= Date: Thu, 19 Apr 2018 17:21:54 +0200 Subject: [PATCH 1/2] Register FilterPluginManager by class name --- src/ConfigProvider.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ConfigProvider.php b/src/ConfigProvider.php index 6022e589..1df24290 100644 --- a/src/ConfigProvider.php +++ b/src/ConfigProvider.php @@ -29,8 +29,10 @@ public function __invoke() public function getDependencyConfig() { return [ + 'aliases' => [ + 'FilterManager' => FilterPluginManager::class, 'factories' => [ - 'FilterManager' => FilterPluginManagerFactory::class, + FilterPluginManager::class => FilterPluginManagerFactory::class, ], ]; } From 071287f180bcd22bf0c0214621d34c34601437c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=81opaci=C5=84ski?= Date: Thu, 19 Apr 2018 17:32:04 +0200 Subject: [PATCH 2/2] Update ConfigProvider.php --- src/ConfigProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ConfigProvider.php b/src/ConfigProvider.php index 1df24290..b54b0990 100644 --- a/src/ConfigProvider.php +++ b/src/ConfigProvider.php @@ -31,6 +31,7 @@ public function getDependencyConfig() return [ 'aliases' => [ 'FilterManager' => FilterPluginManager::class, + ], 'factories' => [ FilterPluginManager::class => FilterPluginManagerFactory::class, ],