Merge branch 'develop' into 5.8-dev

This commit is contained in:
James Cole
2022-08-21 10:42:01 +02:00
2 changed files with 27 additions and 20 deletions

View File

@@ -26,6 +26,8 @@
* @author Taylor Otwell <taylor@laravel.com>
*/
use Symfony\Component\HttpFoundation\Exception\SuspiciousOperationException;
define('LARAVEL_START', microtime(true));
/*
@@ -72,9 +74,14 @@ $app = require_once __DIR__ . '/../bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
try {
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
} catch(SuspiciousOperationException $e) {
die('Cannot handle this situation.');
}
$response->send();
$kernel->terminate($request, $response);