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

Commit 0534a13

Browse files
author
Igor Golovanov
committed
Added ValidatorProviderInterface
1 parent a5be600 commit 0534a13

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
@@ -35,7 +35,7 @@ public function init($event)
3535
$serviceListener->addServiceManager(
3636
'ValidatorManager',
3737
'validators',
38-
'Zend\ModuleManager\Feature\ValidatorProviderInterface',
38+
ValidatorProviderInterface::class,
3939
'getValidatorConfig'
4040
);
4141
}

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)