diff --git a/README.md b/README.md index cafd5809..ce743d81 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,8 @@ Blessing Skin Server has a few system requirements. 1. Web server which supports URL rewriting 2. **PHP version >= 5.5.9** 3. GD PHP Extension -4. Writeable directory +4. OpenSSL PHP Extension +5. Writeable directory Quick Start Install ----------- diff --git a/bootstrap/app.php b/bootstrap/handler.php similarity index 75% rename from bootstrap/app.php rename to bootstrap/handler.php index f2801adf..3afc5e13 100644 --- a/bootstrap/app.php +++ b/bootstrap/handler.php @@ -1,5 +1,18 @@ singleton( App\Exceptions\Handler::class ); -/* -|-------------------------------------------------------------------------- -| Return The Application -|-------------------------------------------------------------------------- -| -| This script returns the application instance. The instance is given to -| the calling script so we can separate the building of the instances -| from the actual running of the application and sending responses. -| -*/ +$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); -return $app; +$response = $kernel->handle( + $request = Illuminate\Http\Request::capture() +); + +$response->send(); + +$kernel->terminate($request, $response); diff --git a/index.php b/index.php index 0151906b..5c7a1f2f 100755 --- a/index.php +++ b/index.php @@ -20,16 +20,5 @@ if (!function_exists('openssl_encrypt')) { exit('[Error] You have not installed the OpenSSL extension'); } -require __DIR__.'/bootstrap/autoload.php'; - -$app = require_once __DIR__.'/bootstrap/app.php'; - -$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); - -$response = $kernel->handle( - $request = Illuminate\Http\Request::capture() -); - -$response->send(); - -$kernel->terminate($request, $response); +// handle the request +require __DIR__.'/bootstrap/handler.php';