diff --git a/src/HandlerContainer.php b/src/HandlerContainer.php index 75173db..19f223f 100644 --- a/src/HandlerContainer.php +++ b/src/HandlerContainer.php @@ -78,7 +78,7 @@ public function dispatchController(Request $request) : Response ); } - public function setControllerDependancies(...$args) + public function setControllerArguments(...$args) { $this->controllerArguments = $args; } diff --git a/src/Router.php b/src/Router.php index 8d59568..ca5c3d5 100644 --- a/src/Router.php +++ b/src/Router.php @@ -114,7 +114,7 @@ public function run(Request $request) // $response will be of type HandlerContainer $dispatcher = unserialize($dispatch[1]); - $dispatcher->setControllerDependancies(...$this->controllerArguments); + $dispatcher->setControllerArguments(...$this->controllerArguments); $response = $dispatcher->process($request); break; } @@ -141,7 +141,7 @@ public function default405route() : Response ); } - public function setControllerDependancies(...$args) + public function setControllerArguments(...$args) { $this->controllerArguments = $args; }