planiverse

A minimalist, no-JS front-end for Mastodon.
git clone https://git.stjo.hn/planiverse
Log | Files | Refs | README | LICENSE

CreatesApplication.php (446B)


      1 <?php
      2 
      3 namespace Tests;
      4 
      5 use Illuminate\Support\Facades\Hash;
      6 use Illuminate\Contracts\Console\Kernel;
      7 
      8 trait CreatesApplication
      9 {
     10     /**
     11      * Creates the application.
     12      *
     13      * @return \Illuminate\Foundation\Application
     14      */
     15     public function createApplication()
     16     {
     17         $app = require __DIR__.'/../bootstrap/app.php';
     18 
     19         $app->make(Kernel::class)->bootstrap();
     20 
     21         Hash::setRounds(4);
     22 
     23         return $app;
     24     }
     25 }