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

Added ValidatorProviderInterface #64

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function init($event)
$serviceListener->addServiceManager(
'ValidatorManager',
'validators',
'Zend\ModuleManager\Feature\ValidatorProviderInterface',
ValidatorProviderInterface::class,
'getValidatorConfig'
);
}
Expand Down
19 changes: 19 additions & 0 deletions src/ValidatorProviderInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

/**
* @link http://github.com/zendframework/zend-validator for the canonical source repository
*
* @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace Zend\Validator;

interface ValidatorProviderInterface
{
/**
* Provide plugin manager configuration for validators.
*
* @return array
*/
public function getValidatorConfig();
}