*/ class RouteGuardServiceFactory implements FactoryInterface { /** * {@inheritDoc} * * @return \BjyAuthorize\Guard\Route */ public function createService(ServiceLocatorInterface $serviceLocator) { $config = $serviceLocator->get('BjyAuthorize\Config'); return new Controller($config['guards']['BjyAuthorize\Guard\Controller'], $serviceLocator); } }