refactor(router): Use Neuron object for route parameters
This commit is contained in:
@@ -38,7 +38,7 @@ class Request extends Neuron
|
||||
$this->put = new Neuron();
|
||||
$this->patch = new Neuron();
|
||||
$this->delete = new Neuron();
|
||||
$this->params = new Neuron(Router::$currentParams);
|
||||
$this->params = Router::$params ?? new Neuron();
|
||||
$this->body = file_get_contents("php://input");
|
||||
|
||||
$contentType = isset($_SERVER["CONTENT_TYPE"]) ? trim($_SERVER["CONTENT_TYPE"]) : '';
|
||||
|
||||
Reference in New Issue
Block a user