Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
11 | 87 | public function authorizeMatchedRoutes() |
|
12 | { |
||
13 | Route::matched(function (RouteMatched $eventObj) { |
||
14 | 44 | $route = $eventObj->route; |
|
15 | 44 | $this->setGuardFor($eventObj->request->method().$route->uri); |
|
16 | 28 | $this->setGuardFor($route->getName()); |
|
17 | 26 | $this->setGuardFor($route->getActionName()); |
|
18 | 87 | }); |
|
32 |