Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
11 | 87 | public function authorizeMatchedRoutes() |
|
12 | { |
||
13 | Route::matched(function (RouteMatched $eventObj) { |
||
14 | $matchedRoute = [ |
||
15 | 44 | $eventObj->route->getName(), |
|
16 | 44 | $eventObj->route->getActionName(), |
|
17 | 44 | $eventObj->request->method().$eventObj->route->uri, |
|
18 | ]; |
||
19 | |||
20 | 44 | $closures = app(RouterEventManager::class)->findMatchingCallbacks($matchedRoute); |
|
21 | 44 | $this->performClosures($closures); |
|
22 | 87 | }); |
|
37 |