mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-29 23:22:34 +01:00
794671ef32
Following Laravel guidance and GitHub diff. Not yet in tested state with app-specific changes made.
21 lines
376 B
PHP
21 lines
376 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
|
use Illuminate\Foundation\Application;
|
|
|
|
trait CreatesApplication
|
|
{
|
|
/**
|
|
* Creates the application.
|
|
*/
|
|
public function createApplication(): Application
|
|
{
|
|
$app = require __DIR__ . '/../bootstrap/app.php';
|
|
$app->make(Kernel::class)->bootstrap();
|
|
|
|
return $app;
|
|
}
|
|
}
|