getServiceLocator(); } $helper = new Asset(); $config = $container->get('config'); if (isset($config['view_helper_config']['asset'])) { $configHelper = $config['view_helper_config']['asset']; if (isset($configHelper['resource_map']) && is_array($configHelper['resource_map'])) { $helper->setResourceMap($configHelper['resource_map']); } else { throw new Exception\RuntimeException('Invalid resource map configuration.'); } } return $helper; } /** * Create service * * @param ServiceLocatorInterface $serviceLocator * @param string|null $rName * @param string|null $cName * @return Asset */ public function createService(ServiceLocatorInterface $serviceLocator, $rName = null, $cName = null) { return $this($serviceLocator, $cName); } }