mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
77c531527c
* Apply fixes from StyleCI * Disable style check
23 lines
391 B
PHP
23 lines
391 B
PHP
<?php
|
|
|
|
namespace LibreNMS\Tests;
|
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
|
|
|
trait CreatesApplication
|
|
{
|
|
/**
|
|
* Creates the application.
|
|
*
|
|
* @return \Illuminate\Foundation\Application
|
|
*/
|
|
public function createApplication()
|
|
{
|
|
$app = require __DIR__ . '/../bootstrap/app.php';
|
|
|
|
$app->make(Kernel::class)->bootstrap();
|
|
|
|
return $app;
|
|
}
|
|
}
|