mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-27 06:29:19 +08:00
25 lines
631 B
PHP
25 lines
631 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Handle The Request
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Blessing Skin Server separated these codes here to ensure that
|
|
| runtime check at index.php will be executed correctly, since
|
|
| namespaced class names will cause parse error under PHP 5.3.
|
|
|
|
|
*/
|
|
|
|
$app = require_once __DIR__.'/app.php';
|
|
|
|
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
|
|
|
|
$response = $kernel->handle(
|
|
$request = Illuminate\Http\Request::capture()
|
|
);
|
|
|
|
$response->send();
|
|
|
|
$kernel->terminate($request, $response);
|