mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
adjust index script
This commit is contained in:
parent
ae2af3adfc
commit
5c7c9f3638
@ -1,5 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Contracts\Http\Kernel;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* Laravel - A PHP Framework For Web Artisans
|
||||||
*
|
*
|
||||||
@ -23,19 +26,6 @@ define('LARAVEL_START', microtime(true));
|
|||||||
|
|
||||||
require __DIR__.'/../vendor/autoload.php';
|
require __DIR__.'/../vendor/autoload.php';
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| Turn On The Lights
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| We need to illuminate PHP development, so let us turn on the lights.
|
|
||||||
| This bootstraps the framework and gets it ready for use, then it
|
|
||||||
| will load up this application so that we can run it and send
|
|
||||||
| the responses back to the browser and delight our users.
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
$app = require_once __DIR__.'/../bootstrap/app.php';
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -49,10 +39,12 @@ $app = require_once __DIR__.'/../bootstrap/app.php';
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
|
$app = require_once __DIR__.'/../bootstrap/app.php';
|
||||||
|
|
||||||
|
$kernel = $app->make(Kernel::class);
|
||||||
|
|
||||||
$response = tap($kernel->handle(
|
$response = tap($kernel->handle(
|
||||||
$request = Illuminate\Http\Request::capture()
|
$request = Request::capture()
|
||||||
))->send();
|
))->send();
|
||||||
|
|
||||||
$kernel->terminate($request, $response);
|
$kernel->terminate($request, $response);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user