Skip to content

Commit

Permalink
Merge route middleware with controller ones (#1235)
Browse files Browse the repository at this point in the history
* For route, report Controller middleware as well

* For route, report Controller middleware as well 2
Start CI

* For route, report Controller middleware as well
  • Loading branch information
Ekaterina authored Mar 1, 2024
1 parent 016a414 commit 1fcb373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataCollector/RouteCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function getMiddleware($route)
{
return implode(', ', array_map(function ($middleware) {
return $middleware instanceof Closure ? 'Closure' : $middleware;
}, $route->middleware()));
}, $route->gatherMiddleware()));
}

/**
Expand Down

0 comments on commit 1fcb373

Please sign in to comment.