| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | use BookStack\Http\Request; | 
					
						
							| 
									
										
										
										
											2021-11-05 06:57:49 +08:00
										 |  |  | use Illuminate\Contracts\Http\Kernel; | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-20 01:59:12 +08:00
										 |  |  | define('LARAVEL_START', microtime(true)); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-11 19:14:49 +08:00
										 |  |  | // Determine if the application is in maintenance mode...
 | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | if (file_exists(__DIR__ . '/../storage/framework/maintenance.php')) { | 
					
						
							|  |  |  |     require __DIR__ . '/../storage/framework/maintenance.php'; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-11 19:14:49 +08:00
										 |  |  | // Register the Composer autoloader...
 | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | require __DIR__ . '/../vendor/autoload.php'; | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-11 19:14:49 +08:00
										 |  |  | // Run the application
 | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | $app = require_once __DIR__ . '/../bootstrap/app.php'; | 
					
						
							|  |  |  | $app->alias('request', Request::class); | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | $kernel = $app->make(Kernel::class); | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-31 04:29:59 +08:00
										 |  |  | $response = tap($kernel->handle( | 
					
						
							|  |  |  |     $request = Request::capture() | 
					
						
							|  |  |  | ))->send(); | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-05 06:57:49 +08:00
										 |  |  | $kernel->terminate($request, $response); |