mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-02 05:43:40 +08: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;
|
|
}
|
|
}
|