2011-06-08 23:45:08 -05:00
|
|
|
<?php
|
2015-06-01 15:43:37 +01:00
|
|
|
|
2020-06-24 13:09:30 -05:00
|
|
|
use Illuminate\Contracts\Http\Kernel;
|
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
2017-04-17 18:39:32 -03:00
|
|
|
define('LARAVEL_START', microtime(true));
|
|
|
|
|
|
2020-07-16 14:30:22 -05:00
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
2021-03-14 21:00:54 +01:00
|
|
|
| Check If The Application Is Under Maintenance
|
2020-07-16 14:30:22 -05:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
2021-03-14 21:00:54 +01:00
|
|
|
| If the application is in maintenance / demo mode via the "down" command
|
2021-03-15 08:41:28 -05:00
|
|
|
| we will load this file so that any pre-rendered content can be shown
|
2020-07-16 14:30:22 -05:00
|
|
|
| instead of starting the framework, which could cause an exception.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2020-07-17 08:03:16 -05:00
|
|
|
if (file_exists(__DIR__.'/../storage/framework/maintenance.php')) {
|
|
|
|
|
require __DIR__.'/../storage/framework/maintenance.php';
|
2020-07-16 14:27:19 -05:00
|
|
|
}
|
|
|
|
|
|
2013-01-11 15:14:07 -06:00
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
2013-01-23 23:33:47 -06:00
|
|
|
| Register The Auto Loader
|
2013-01-11 15:14:07 -06:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
2014-12-24 18:47:55 -05:00
|
|
|
| Composer provides a convenient, automatically generated class loader for
|
2020-06-24 13:11:53 -05:00
|
|
|
| this application. We just need to utilize it! We'll simply require it
|
|
|
|
|
| into the script here so we don't need to manually load our classes.
|
2013-01-11 15:14:07 -06:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2017-04-17 18:39:32 -03:00
|
|
|
require __DIR__.'/../vendor/autoload.php';
|
2013-01-11 15:14:07 -06:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Run The Application
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
2020-06-24 13:11:53 -05:00
|
|
|
| Once we have the application, we can handle the incoming request using
|
|
|
|
|
| the application's HTTP kernel. Then, we will send the response back
|
|
|
|
|
| to this client's browser, allowing them to enjoy our application.
|
2013-01-11 15:14:07 -06:00
|
|
|
|
|
|
|
|
|
*/
|
2014-08-18 22:46:16 -05:00
|
|
|
|
2020-06-24 13:09:30 -05:00
|
|
|
$app = require_once __DIR__.'/../bootstrap/app.php';
|
|
|
|
|
|
|
|
|
|
$kernel = $app->make(Kernel::class);
|
2014-11-06 20:06:47 -06:00
|
|
|
|
2020-06-24 13:03:02 -05:00
|
|
|
$response = tap($kernel->handle(
|
2020-06-24 13:09:30 -05:00
|
|
|
$request = Request::capture()
|
2020-06-24 13:03:02 -05:00
|
|
|
))->send();
|
2014-11-06 20:06:47 -06:00
|
|
|
|
|
|
|
|
$kernel->terminate($request, $response);
|