Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit d8f6e43

Browse files
committed
Add proper Factory name for ValidatorPluginManager and add ValidatorManager as alias for it
1 parent b44d4de commit d8f6e43

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ConfigProvider.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
class ConfigProvider
1111
{
12+
1213
/**
1314
* Return configuration for this component.
14-
*
1515
* @return array
1616
*/
1717
public function __invoke()
@@ -23,14 +23,16 @@ public function __invoke()
2323

2424
/**
2525
* Return dependency mappings for this component.
26-
*
2726
* @return array
2827
*/
2928
public function getDependencyConfig()
3029
{
3130
return [
3231
'factories' => [
33-
'ValidatorManager' => ValidatorPluginManagerFactory::class,
32+
ValidatorPluginManager::class => ValidatorPluginManagerFactory::class,
33+
],
34+
'aliases' => [
35+
'ValidatorManager' => ValidatorPluginManager::class,
3436
],
3537
];
3638
}

0 commit comments

Comments
 (0)