mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-27 07:00:29 +01:00
45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @see https://github.com/laminas/laminas-validator for the canonical source repository
|
|
* @copyright https://github.com/laminas/laminas-validator/blob/master/COPYRIGHT.md
|
|
* @license https://github.com/laminas/laminas-validator/blob/master/LICENSE.md New BSD License
|
|
*/
|
|
|
|
namespace Laminas\Validator;
|
|
|
|
class ConfigProvider
|
|
{
|
|
/**
|
|
* Return configuration for this component.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function __invoke()
|
|
{
|
|
return [
|
|
'dependencies' => $this->getDependencyConfig(),
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Return dependency mappings for this component.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getDependencyConfig()
|
|
{
|
|
return [
|
|
'aliases' => [
|
|
'ValidatorManager' => ValidatorPluginManager::class,
|
|
|
|
// Legacy Zend Framework aliases
|
|
\Zend\Validator\ValidatorPluginManager::class => ValidatorPluginManager::class,
|
|
],
|
|
'factories' => [
|
|
ValidatorPluginManager::class => ValidatorPluginManagerFactory::class,
|
|
],
|
|
];
|
|
}
|
|
}
|