*/ class LegacyRoute extends AbstractRoute { public function resolve(ServerRequestInterface $request) { $relativeUrl = \tao_helpers_Request::getRelativeUrl($request->getRequestTarget()); $parts = explode('/', ltrim($relativeUrl, '/')); if ($parts[0] == $this->getId()) { $controllerShortName = isset($parts[1]) && !empty($parts[1]) ? $parts[1] : DEFAULT_MODULE_NAME; $controller = $this->getExtension()->getId() . '_actions_' . $controllerShortName; $action = isset($parts[2]) && !empty($parts[2]) ? $parts[2] : DEFAULT_ACTION_NAME; return $controller . '@' . $action; } return null; } /** * Get controller namespace prefix * @return string */ public static function getControllerPrefix() { return ''; } }