get('config'); $trConfig = isset($config['translator']) ? $config['translator'] : []; $translator = Translator::factory($trConfig); if ($container->has('TranslatorPluginManager')) { $translator->setPluginManager($container->get('TranslatorPluginManager')); } return $translator; } /** * zend-servicemanager v2 factory for creating Translator instance. * * Proxies to `__invoke()`. * * @param ServiceLocatorInterface $serviceLocator * @return Translator */ public function createService(ServiceLocatorInterface $serviceLocator) { return $this($serviceLocator, Translator::class); } }