Skip to content

Commit

Permalink
update builder
Browse files Browse the repository at this point in the history
  • Loading branch information
heyanlong committed Jul 26, 2019
1 parent b678172 commit f60426e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Routing/RouteCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,11 @@ public function addRoute($httpMethod, $route, $handler)
$middlewares[] = $middleware;
}
}
$middlewares = array_merge($groupMiddleware, $middlewares);
}
}

$middlewares = array_merge($groupMiddleware, $middlewares);

$handler = [
'uses' => $uses,
'middleware' => $middlewares
Expand Down

0 comments on commit f60426e

Please sign in to comment.