mirror of
https://github.com/twisterarmy/twister.git
synced 2025-03-12 13:21:30 +00:00
This commit is contained in:
parent
029b9a48e6
commit
7e6e08586c
@ -140,14 +140,14 @@ class Request
|
||||
return $id;
|
||||
}
|
||||
|
||||
public function execute_route()
|
||||
public function execute_route(array $routes)
|
||||
{
|
||||
$path = $this->uri->path;
|
||||
$paths = explode('/', $path, 4);
|
||||
$route = null;
|
||||
$method = $this->method;
|
||||
// $this->route = null; // general (debug) information about the matching route
|
||||
$this->routes = $routes = require __DIR__ . '/../config/routes.php';
|
||||
$this->routes = $routes; // $routes = require __DIR__ . '/../config/routes.php';
|
||||
// $this->params = null;
|
||||
$controller = $routes['routes'][$paths[1]] ?? $routes[404];
|
||||
// $matches = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user