2017-06-14 04:25:37 +00:00
|
|
|
<?php
|
|
|
|
|
2021-01-23 20:09:16 +00:00
|
|
|
namespace Pterodactyl\Tests;
|
2017-06-14 04:25:37 +00:00
|
|
|
|
2022-10-14 16:59:20 +00:00
|
|
|
use Illuminate\Foundation\Application;
|
2017-06-14 04:25:37 +00:00
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
|
|
|
|
|
|
|
trait CreatesApplication
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Creates the application.
|
|
|
|
*/
|
2022-10-14 16:59:20 +00:00
|
|
|
public function createApplication(): Application
|
2017-06-14 04:25:37 +00:00
|
|
|
{
|
2017-06-18 01:52:32 +00:00
|
|
|
$app = require __DIR__ . '/../bootstrap/app.php';
|
2017-06-14 04:25:37 +00:00
|
|
|
|
|
|
|
$app->make(Kernel::class)->bootstrap();
|
|
|
|
|
|
|
|
return $app;
|
|
|
|
}
|
|
|
|
}
|