1<?php 2 3/** 4 * @see https://github.com/laminas/laminas-validator for the canonical source repository 5 * @copyright https://github.com/laminas/laminas-validator/blob/master/COPYRIGHT.md 6 * @license https://github.com/laminas/laminas-validator/blob/master/LICENSE.md New BSD License 7 */ 8 9namespace Laminas\Validator; 10 11class ConfigProvider 12{ 13 /** 14 * Return configuration for this component. 15 * 16 * @return array 17 */ 18 public function __invoke() 19 { 20 return [ 21 'dependencies' => $this->getDependencyConfig(), 22 ]; 23 } 24 25 /** 26 * Return dependency mappings for this component. 27 * 28 * @return array 29 */ 30 public function getDependencyConfig() 31 { 32 return [ 33 'aliases' => [ 34 'ValidatorManager' => ValidatorPluginManager::class, 35 36 // Legacy Zend Framework aliases 37 \Zend\Validator\ValidatorPluginManager::class => ValidatorPluginManager::class, 38 ], 39 'factories' => [ 40 ValidatorPluginManager::class => ValidatorPluginManagerFactory::class, 41 ], 42 ]; 43 } 44} 45