|
8 | 8 | use Illuminate\Auth\AuthenticationException; |
9 | 9 | use Illuminate\Validation\ValidationException; |
10 | 10 | use Illuminate\Auth\Access\AuthorizationException; |
11 | | -use Laravel\Passport\Exceptions\MissingScopeException; |
12 | 11 | use Illuminate\Database\Eloquent\ModelNotFoundException; |
13 | | -use League\OAuth2\Server\Exception\OAuthServerException; |
14 | 12 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
15 | 13 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
16 | 14 |
|
@@ -38,16 +36,16 @@ abstract class AbstractHandler |
38 | 36 | * @var array |
39 | 37 | */ |
40 | 38 | protected $internalExceptionHandlers = [ |
41 | | - Exception::class => Handler::class, |
42 | | - ModelNotFoundException::class => ModelNotFoundHandler::class, |
43 | | - AuthenticationException::class => AuthenticationHandler::class, |
44 | | - AuthorizationException::class => AuthorizationHandler::class, |
45 | | - AuthorizationException::class => AuthorizationHandler::class, |
46 | | - ValidationException::class => ValidationHandler::class, |
47 | | - BadRequestHttpException::class => BadRequestHttpHandler::class, |
48 | | - NotFoundHttpException::class => NotFoundHttpHandler::class, |
49 | | - MissingScopeException::class => MissingScopeHandler::class, |
50 | | - OAuthServerException::class => OAuthServerHandler::class, |
| 39 | + Exception::class => Handler::class, |
| 40 | + ModelNotFoundException::class => ModelNotFoundHandler::class, |
| 41 | + AuthenticationException::class => AuthenticationHandler::class, |
| 42 | + AuthorizationException::class => AuthorizationHandler::class, |
| 43 | + AuthorizationException::class => AuthorizationHandler::class, |
| 44 | + ValidationException::class => ValidationHandler::class, |
| 45 | + BadRequestHttpException::class => BadRequestHttpHandler::class, |
| 46 | + NotFoundHttpException::class => NotFoundHttpHandler::class, |
| 47 | + 'Laravel\Passport\Exceptions\MissingScopeException' => MissingScopeHandler::class, |
| 48 | + 'League\OAuth2\Server\Exception\OAuthServerException' => OAuthServerHandler::class, |
51 | 49 | ]; |
52 | 50 |
|
53 | 51 | /** |
|
0 commit comments