| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function boot() |
||
| 32 | { |
||
| 33 | $handler = app('Dingo\Api\Exception\Handler'); |
||
| 34 | $handler->register(function (AuthenticationException $exception) { |
||
| 35 | throw new UnauthorizedHttpException(null, $exception->getMessage()); |
||
| 36 | }); |
||
| 37 | $handler->register(function (AuthorizationException $exception) { |
||
| 38 | throw new AccessDeniedHttpException($exception->getMessage()); |
||
| 39 | }); |
||
| 52 |