mirror of
https://gitee.com/mix-php/mix.git
synced 2024-11-29 18:28:00 +08:00
fix: swow 兼容 uri->getPath
This commit is contained in:
parent
fd9a4769a9
commit
9eb95b1b0a
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user