From d8f6e43e58cdee0b406ceb22e4318561c2f3c30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20B=C3=B6sing?= Date: Wed, 2 Aug 2017 14:15:59 +0200 Subject: [PATCH 1/2] Add proper Factory name for `ValidatorPluginManager` and add `ValidatorManager` as alias for it --- src/ConfigProvider.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ConfigProvider.php b/src/ConfigProvider.php index 02f1b0a77..06772d057 100644 --- a/src/ConfigProvider.php +++ b/src/ConfigProvider.php @@ -9,9 +9,9 @@ class ConfigProvider { + /** * Return configuration for this component. - * * @return array */ public function __invoke() @@ -23,14 +23,16 @@ public function __invoke() /** * Return dependency mappings for this component. - * * @return array */ public function getDependencyConfig() { return [ 'factories' => [ - 'ValidatorManager' => ValidatorPluginManagerFactory::class, + ValidatorPluginManager::class => ValidatorPluginManagerFactory::class, + ], + 'aliases' => [ + 'ValidatorManager' => ValidatorPluginManager::class, ], ]; } From d67f2d484d8e3c2740df64f83fbfbc88700726fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20B=C3=B6sing?= Date: Wed, 2 Aug 2017 14:18:34 +0200 Subject: [PATCH 2/2] Remove whitespaces --- src/ConfigProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ConfigProvider.php b/src/ConfigProvider.php index 06772d057..4430fdef7 100644 --- a/src/ConfigProvider.php +++ b/src/ConfigProvider.php @@ -9,9 +9,9 @@ class ConfigProvider { - /** * Return configuration for this component. + * * @return array */ public function __invoke() @@ -23,6 +23,7 @@ public function __invoke() /** * Return dependency mappings for this component. + * * @return array */ public function getDependencyConfig()