Skip to content

Commit e4796a2

Browse files
committed
Merge pull request laravel#3405 from nWidart/patch-1
Use the ::class notation
2 parents 86e53af + 58db25b commit e4796a2

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

app/Console/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Kernel extends ConsoleKernel
1313
* @var array
1414
*/
1515
protected $commands = [
16-
'App\Console\Commands\Inspire',
16+
\App\Console\Commands\Inspire::class,
1717
];
1818

1919
/**

app/Exceptions/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Handler extends ExceptionHandler
1313
* @var array
1414
*/
1515
protected $dontReport = [
16-
'Symfony\Component\HttpKernel\Exception\HttpException',
16+
\Symfony\Component\HttpKernel\Exception\HttpException::class,
1717
];
1818

1919
/**

app/Http/Kernel.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class Kernel extends HttpKernel
1212
* @var array
1313
*/
1414
protected $middleware = [
15-
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
16-
'Illuminate\Cookie\Middleware\EncryptCookies',
17-
'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
18-
'Illuminate\Session\Middleware\StartSession',
19-
'Illuminate\View\Middleware\ShareErrorsFromSession',
20-
'App\Http\Middleware\VerifyCsrfToken',
15+
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
16+
\Illuminate\Cookie\Middleware\EncryptCookies::class,
17+
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
18+
\Illuminate\Session\Middleware\StartSession::class,
19+
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
20+
\App\Http\Middleware\VerifyCsrfToken::class,
2121
];
2222

2323
/**
@@ -26,8 +26,8 @@ class Kernel extends HttpKernel
2626
* @var array
2727
*/
2828
protected $routeMiddleware = [
29-
'auth' => 'App\Http\Middleware\Authenticate',
30-
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
31-
'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
29+
'auth' => \App\Http\Middleware\Authenticate::class,
30+
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
31+
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
3232
];
3333
}

0 commit comments

Comments
 (0)