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

Commit 6ed3cbd

Browse files
committed
Merge branch 'feature/188' into develop
Close #188
2 parents 44b33cc + dc74517 commit 6ed3cbd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ All notable changes to this project will be documented in this file, in reverse
3636
previously occur when one or the other was not set, but means an exception
3737
will now be raised during instantiation (versus runtime during `isValid()`).
3838

39+
- [#188](https://github.com/zendframework/zend-validator/pull/188) updates the
40+
`ConfigProvider` to alias the service name `ValidatorManager` to the class
41+
`Zend\Validator\ValidatorPluginManager`, and now maps the the latter class to
42+
the `ValidatorPluginManagerFactory`. Previously, we mapped the service name
43+
directly to the factory. Usage should not change for anybody at this point.
44+
3945
### Deprecated
4046

4147
- Nothing.

src/ConfigProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public function __invoke()
2929
public function getDependencyConfig()
3030
{
3131
return [
32+
'aliases' => [
33+
'ValidatorManager' => ValidatorPluginManager::class,
34+
],
3235
'factories' => [
33-
'ValidatorManager' => ValidatorPluginManagerFactory::class,
36+
ValidatorPluginManager::class => ValidatorPluginManagerFactory::class,
3437
],
3538
];
3639
}

0 commit comments

Comments
 (0)