![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/laminas/laminas-i18n/src/ |
<?php namespace Laminas\I18n; use Laminas\ModuleManager\ModuleManager; use Laminas\ServiceManager\ConfigInterface; /** * @see ConfigInterface * * @psalm-import-type ServiceManagerConfigurationType from ConfigInterface */ class Module { /** * Return laminas-i18n configuration for laminas-mvc application. * * @return array{ * filters: ServiceManagerConfigurationType, * service_manager: ServiceManagerConfigurationType, * validators: ServiceManagerConfigurationType, * view_helpers: ServiceManagerConfigurationType, * } */ public function getConfig() { $provider = new ConfigProvider(); return [ 'filters' => $provider->getFilterConfig(), 'service_manager' => $provider->getDependencyConfig(), 'validators' => $provider->getValidatorConfig(), 'view_helpers' => $provider->getViewHelperConfig(), ]; } /** * Register a specification for the TranslatorPluginManager with the ServiceListener. * * @param ModuleManager $moduleManager * @return void */ public function init($moduleManager) { $event = $moduleManager->getEvent(); $container = $event->getParam('ServiceManager'); $serviceListener = $container->get('ServiceListener'); $serviceListener->addServiceManager( 'TranslatorPluginManager', 'translator_plugins', 'Laminas\ModuleManager\Feature\TranslatorPluginProviderInterface', 'getTranslatorPluginConfig' ); } }