setServiceLocator(ServiceManager::getServiceManager()); $class = $route->getControllerClass(); } catch (\ResolverException $re) { throw new common_exception_Error('The url "' . $url . '" could not be mapped to a controller : ' . $re->getMessage()); } } if (is_null($class)) { throw new common_exception_Error('The url "' . $url . '" could not be mapped to a controller'); } return $class; } }