From aebaf1a42d8194cf8e5c3da3fb058b24bfcb403f Mon Sep 17 00:00:00 2001 From: Nik Barham Date: Tue, 9 May 2017 15:24:24 +0000 Subject: [PATCH] Fixing function names for setControllerArguments --- src/HandlerContainer.php | 2 +- src/Router.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }