1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-21 05:50:55 +01:00
openstamanager/tests/CreatesApplication.php
Dasc3er 91f4355c36 Introduzione del framework Laravel
Introduzione di Laravel 8 come wrapper per la versione legacy del gestionale, per favorire l'aggiornamento della struttura interna.
2020-12-31 16:17:16 +01:00

23 lines
380 B
PHP

<?php
namespace 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;
}
}