Skip to content

Commit 16e37cb

Browse files
committed
Use the ::class notation
1 parent bacda07 commit 16e37cb

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

artisan

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $app = require_once __DIR__.'/bootstrap/app.php';
2828
|
2929
*/
3030

31-
$kernel = $app->make('Illuminate\Contracts\Console\Kernel');
31+
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
3232

3333
$status = $kernel->handle(
3434
$input = new Symfony\Component\Console\Input\ArgvInput,

bootstrap/app.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@
2727
*/
2828

2929
$app->singleton(
30-
'Illuminate\Contracts\Http\Kernel',
31-
'App\Http\Kernel'
30+
Illuminate\Contracts\Http\Kernel::class,
31+
App\Http\Kernel::class
3232
);
3333

3434
$app->singleton(
35-
'Illuminate\Contracts\Console\Kernel',
36-
'App\Console\Kernel'
35+
Illuminate\Contracts\Console\Kernel::class,
36+
App\Console\Kernel::class
3737
);
3838

3939
$app->singleton(
40-
'Illuminate\Contracts\Debug\ExceptionHandler',
41-
'App\Exceptions\Handler'
40+
Illuminate\Contracts\Debug\ExceptionHandler::class,
41+
App\Exceptions\Handler::class
4242
);
4343

4444
/*

database/factories/ModelFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
|
1212
*/
1313

14-
$factory->define('App\User', function ($faker) {
14+
$factory->define(App\User::class, function ($faker) {
1515
return [
1616
'name' => $faker->name,
1717
'email' => $faker->email,

public/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
|
4848
*/
4949

50-
$kernel = $app->make('Illuminate\Contracts\Http\Kernel');
50+
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
5151

5252
$response = $kernel->handle(
5353
$request = Illuminate\Http\Request::capture()

tests/TestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function createApplication()
1818
{
1919
$app = require __DIR__.'/../bootstrap/app.php';
2020

21-
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
21+
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
2222

2323
return $app;
2424
}

0 commit comments

Comments
 (0)