/** * @param ServiceLocatorInterface $sl * @return \Authorize\Service\Authorize */ public function createService(ServiceLocatorInterface $sl) { $guardController = new Controller(); /* @var $authorizeService \Authorize\Service\Authorize */ $authorizeService = $sl->get('Authorize\\Service\\Authorize'); $guardController->setAuthorizeService($authorizeService); return $guardController; }