mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
Use path info for routing
This commit is contained in:
parent
d12106809f
commit
1e1f9e51ee
|
@ -49,8 +49,9 @@ class RouterMiddleware
|
|||
*/
|
||||
public function __invoke(Request $request, Response $response, callable $out = null)
|
||||
{
|
||||
$serverParams = $request->getServerParams();
|
||||
$uri = array_get($serverParams, 'PATH_INFO', $request->getUri()->getPath()) ?: '/';
|
||||
$method = $request->getMethod();
|
||||
$uri = $request->getUri()->getPath() ?: '/';
|
||||
|
||||
$routeInfo = $this->getDispatcher()->dispatch($method, $uri);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user