mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
39 lines
823 B
PHP
39 lines
823 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Run The Application
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Once we have the application, we can handle the incoming request
|
|
| through the kernel, and send the associated response back to
|
|
| the client's browser allowing them to enjoy the creative
|
|
| and wonderful application we have prepared for them.
|
|
|
|
|
*/
|
|
|
|
$app = require_once __DIR__.'/bootstrap/app.php';
|
|
|
|
global $kernel;
|
|
|
|
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
|
|
|
|
|
|
function run()
|
|
{
|
|
global $kernel;
|
|
|
|
ob_start();
|
|
|
|
$response = $kernel->handle(
|
|
$request = Illuminate\Http\Request::capture()
|
|
);
|
|
|
|
$response->send();
|
|
|
|
$kernel->terminate($request, $response);
|
|
|
|
return ob_get_clean();
|
|
}
|
|
|