get('psr7.request'); $middleware = $app->getMiddleware(); $dispatcher = new Dispatcher($middleware); $dispatcher->setContainer($app); // Handle the request $dispatcher->handle($request);