Skip to content

Commit

Permalink
Improve the Nova\Routing\ControllerDispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyCyborg committed Sep 18, 2017
1 parent 473a75b commit 178ce35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Routing/ControllerDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(RouteFiltererInterface $filterer, Container $contain
*/
public function dispatch(Route $route, Request $request, Controller $controller, $method)
{
$this->assignAfter($controller, $route, $request, $method);
$this->assignAfter($controller, $route, $method);

//
$response = $this->before($controller, $route, $request, $method);
Expand Down Expand Up @@ -113,11 +113,10 @@ protected function before($controller, $route, $request, $method)
*
* @param \Nova\Routing\Controller $controller
* @param \Nova\Routing\Route $route
* @param \Nova\Http\Request $request
* @param string $method
* @return mixed
*/
protected function assignAfter($controller, $route, $request, $method)
protected function assignAfter($controller, $route, $method)
{
foreach ($controller->getAfterFilters() as $filter) {
$options = $filter['options'];
Expand Down

0 comments on commit 178ce35

Please sign in to comment.