*/ class UnauthorizedStrategyServiceFactory implements FactoryInterface { /** * {@inheritDoc} * * @return \BjyAuthorize\View\UnauthorizedStrategy */ public function createService(ServiceLocatorInterface $serviceLocator) { $config = $serviceLocator->get('BjyAuthorize\Config'); return new UnauthorizedStrategy($config['template']); } }