CodeExplorer createRouter example
if ($method === 'cli'
) { return [ 'before' =>
[],
'after' =>
[],
];
} $request = Services::
request(null, false
);
$request->
setMethod($method);
$router =
$this->
createRouter($request);
$filters =
$this->
createFilters($request);
$finder =
new FilterFinder($router,
$filters);
return $finder->
find($uri);
} private function createRouter(Request
$request): Router
{ $routes = Services::
routes();