Files

22 lines
389 B
PHP
Raw Permalink Normal View History

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