fix: swow 兼容 uri->getPath

This commit is contained in:
cexll 2022-06-21 11:52:17 +08:00
parent fd9a4769a9
commit 9eb95b1b0a

View File

@ -90,7 +90,7 @@ class Engine
*/
list($request, $response) = $args;
$ctx = Context::fromSwow($this->mode, $request, $response, $this->htmlRender);
$this->dispatch($request->getMethod(), $request->getPath(), $ctx);
$this->dispatch($request->getMethod(), $request->getUri()->getPath(), $ctx);
} else {
throw new RuntimeException('The current usage scenario is not supported');
}