File tree 5 files changed +10
-10
lines changed
5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ $app = require_once __DIR__.'/bootstrap/app.php';
28
28
|
29
29
*/
30
30
31
- $ kernel = $ app ->make (' Illuminate\Contracts\Console\Kernel ' );
31
+ $ kernel = $ app ->make (Illuminate \Contracts \Console \Kernel::class );
32
32
33
33
$ status = $ kernel ->handle (
34
34
$ input = new Symfony \Component \Console \Input \ArgvInput ,
Original file line number Diff line number Diff line change 27
27
*/
28
28
29
29
$ app ->singleton (
30
- ' Illuminate\Contracts\Http\Kernel ' ,
31
- ' App\Http\Kernel '
30
+ Illuminate \Contracts \Http \Kernel::class ,
31
+ App \Http \Kernel::class
32
32
);
33
33
34
34
$ app ->singleton (
35
- ' Illuminate\Contracts\Console\Kernel ' ,
36
- ' App\Console\Kernel '
35
+ Illuminate \Contracts \Console \Kernel::class ,
36
+ App \Console \Kernel::class
37
37
);
38
38
39
39
$ app ->singleton (
40
- ' Illuminate\Contracts\Debug\ExceptionHandler ' ,
41
- ' App\Exceptions\Handler '
40
+ Illuminate \Contracts \Debug \ExceptionHandler::class ,
41
+ App \Exceptions \Handler::class
42
42
);
43
43
44
44
/*
Original file line number Diff line number Diff line change 11
11
|
12
12
*/
13
13
14
- $ factory ->define (' App\User ' , function ($ faker ) {
14
+ $ factory ->define (App \User::class , function ($ faker ) {
15
15
return [
16
16
'name ' => $ faker ->name ,
17
17
'email ' => $ faker ->email ,
Original file line number Diff line number Diff line change 47
47
|
48
48
*/
49
49
50
- $ kernel = $ app ->make (' Illuminate\Contracts\Http\Kernel ' );
50
+ $ kernel = $ app ->make (Illuminate \Contracts \Http \Kernel::class );
51
51
52
52
$ response = $ kernel ->handle (
53
53
$ request = Illuminate \Http \Request::capture ()
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public function createApplication()
18
18
{
19
19
$ app = require __DIR__ .'/../bootstrap/app.php ' ;
20
20
21
- $ app ->make (' Illuminate\Contracts\Console\Kernel ' )->bootstrap ();
21
+ $ app ->make (Illuminate \Contracts \Console \Kernel::class )->bootstrap ();
22
22
23
23
return $ app ;
24
24
}
You can’t perform that action at this time.
0 commit comments