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

Commit 4bb191f

Browse files
committed
Merge pull request #64 from golovanov/validator-provider
Added ValidatorProviderInterface
2 parents f70ba66 + 0534a13 commit 4bb191f

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function init($moduleManager)
3636
$serviceListener->addServiceManager(
3737
'ValidatorManager',
3838
'validators',
39-
'Zend\ModuleManager\Feature\ValidatorProviderInterface',
39+
ValidatorProviderInterface::class,
4040
'getValidatorConfig'
4141
);
4242
}

src/ValidatorProviderInterface.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
/**
4+
* @link http://github.com/zendframework/zend-validator for the canonical source repository
5+
*
6+
* @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
7+
* @license http://framework.zend.com/license/new-bsd New BSD License
8+
*/
9+
namespace Zend\Validator;
10+
11+
interface ValidatorProviderInterface
12+
{
13+
/**
14+
* Provide plugin manager configuration for validators.
15+
*
16+
* @return array
17+
*/
18+
public function getValidatorConfig();
19+
}

0 commit comments

Comments
 (0)