mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-10-31 03:50:27 +03:00 
			
		
		
		
	Following Laravel guidance and GitHub diff. Not yet in tested state with app-specific changes made.
		
			
				
	
	
		
			21 lines
		
	
	
		
			376 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			376 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Tests;
 | |
| 
 | |
| use Illuminate\Contracts\Console\Kernel;
 | |
| use Illuminate\Foundation\Application;
 | |
| 
 | |
| trait CreatesApplication
 | |
| {
 | |
|     /**
 | |
|      * Creates the application.
 | |
|      */
 | |
|     public function createApplication(): Application
 | |
|     {
 | |
|         $app = require __DIR__ . '/../bootstrap/app.php';
 | |
|         $app->make(Kernel::class)->bootstrap();
 | |
| 
 | |
|         return $app;
 | |
|     }
 | |
| }
 |