public static function recognize(Request $request, ContextManager $context) { // XXX: request URI hack, for medick installation in subfolders (e.g. `medick2` as base) // XXX: test with other servers and other types of PHP installations // $request->uri= substr($request->uri, strlen($context->config()->property('base', true))); $router = new Router($context->map()->find_route($request), $context); return $router->create_controller($request); }