Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | protected function getLaravel(): Application |
||
25 | { |
||
26 | $app = new Application($this->baseDir); |
||
27 | $app->singleton( |
||
28 | \Illuminate\Contracts\Http\Kernel::class, |
||
29 | \App\Http\Kernel::class |
||
30 | ); |
||
31 | |||
32 | $app->singleton( |
||
33 | \Illuminate\Contracts\Console\Kernel::class, |
||
34 | \App\Console\Kernel::class |
||
35 | ); |
||
36 | |||
37 | $app->singleton( |
||
38 | \Illuminate\Contracts\Debug\ExceptionHandler::class, |
||
39 | \App\Exceptions\Handler::class |
||
40 | ); |
||
41 | |||
42 | $kernel = $app->make(\Illuminate\Contracts\Console\Kernel::class); |
||
43 | $kernel->bootstrap(); |
||
44 | |||
45 | return $app; |
||
46 | } |
||
48 |