source: tests/CreatesApplication.php@ 0924b6c

Last change on this file since 0924b6c was 0924b6c, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

initial commit

  • Property mode set to 100644
File size: 380 bytes
RevLine 
[0924b6c]1<?php
2
3namespace Tests;
4
5use Illuminate\Contracts\Console\Kernel;
6
7trait CreatesApplication
8{
9 /**
10 * Creates the application.
11 *
12 * @return \Illuminate\Foundation\Application
13 */
14 public function createApplication()
15 {
16 $app = require __DIR__.'/../bootstrap/app.php';
17
18 $app->make(Kernel::class)->bootstrap();
19
20 return $app;
21 }
22}
Note: See TracBrowser for help on using the repository browser.