2018-10-04 19:10:43 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests;
|
|
|
|
|
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
2020-01-30 12:19:51 +01:00
|
|
|
use Illuminate\Support\Facades\Hash;
|
2018-10-04 19:10:43 +02:00
|
|
|
|
|
|
|
trait CreatesApplication
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Creates the application.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Foundation\Application
|
|
|
|
*/
|
|
|
|
public function createApplication()
|
|
|
|
{
|
|
|
|
$app = require __DIR__.'/../bootstrap/app.php';
|
|
|
|
|
2023-12-16 21:50:58 +01:00
|
|
|
// define('STDIN', fopen("php://stdin", "r"));
|
2023-09-27 06:12:03 +02:00
|
|
|
|
2018-10-04 19:10:43 +02:00
|
|
|
$app->make(Kernel::class)->bootstrap();
|
|
|
|
|
2020-01-30 12:19:51 +01:00
|
|
|
Hash::setRounds(4);
|
|
|
|
|
2018-10-04 19:10:43 +02:00
|
|
|
return $app;
|
|
|
|
}
|
|
|
|
}
|