| 1 | <?php |
||
| 16 | trait CreatesApplication |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Creates the application. |
||
| 20 | * |
||
| 21 | * Needs to be implemented by subclasses. |
||
| 22 | * |
||
| 23 | * @return \Symfony\Component\HttpKernel\HttpKernelInterface |
||
| 24 | */ |
||
| 25 | public function createApplication() |
||
| 26 | { |
||
| 27 | $app = require __DIR__.'/../vendor/laravel/laravel/bootstrap/app.php'; |
||
| 28 | |||
| 29 | $app->make(Kernel::class)->bootstrap(); |
||
| 30 | |||
| 31 | return $app; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |