Skip to content

Commit 50041bf

Browse files
author
Samuel
committed
Removed reference not on dependencies class
1 parent cbdc165 commit 50041bf

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/Handlers/AbstractHandler.php

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
use Illuminate\Auth\AuthenticationException;
99
use Illuminate\Validation\ValidationException;
1010
use Illuminate\Auth\Access\AuthorizationException;
11-
use Laravel\Passport\Exceptions\MissingScopeException;
1211
use Illuminate\Database\Eloquent\ModelNotFoundException;
13-
use League\OAuth2\Server\Exception\OAuthServerException;
1412
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
1513
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
1614

@@ -38,16 +36,16 @@ abstract class AbstractHandler
3836
* @var array
3937
*/
4038
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,
5149
];
5250

5351
/**

0 commit comments

Comments
 (0)