blessing-skin-server/bootstrap/kernel.php

25 lines
631 B
PHP
Raw Normal View History

2016-08-28 10:05:21 +08:00
<?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';
2016-08-28 10:05:21 +08:00
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
2016-08-28 10:05:21 +08:00
$kernel->terminate($request, $response);