getServiceLocator(); if (!$services instanceof ServiceLocatorInterface) { throw new ServiceNotCreatedException(sprintf( '%s requires that the application service manager has been injected; none found', __CLASS__ )); } if (!$services->has('ControllerLoader')) { throw new ServiceNotCreatedException(sprintf( '%s requires that the application service manager contains a "%s" service; none found', __CLASS__, 'ControllerLoader' )); } $controllers = $services->get('ControllerLoader'); return new Forward($controllers); } }