Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Fixing function names for setControllerArguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik Barham committed May 9, 2017
1 parent 3c7bcd0 commit aebaf1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/HandlerContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function dispatchController(Request $request) : Response
);
}

public function setControllerDependancies(...$args)
public function setControllerArguments(...$args)
{
$this->controllerArguments = $args;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -141,7 +141,7 @@ public function default405route() : Response
);
}

public function setControllerDependancies(...$args)
public function setControllerArguments(...$args)
{
$this->controllerArguments = $args;
}
Expand Down

0 comments on commit aebaf1a

Please sign in to comment.