laravel/public/index.php

59 lines
1.8 KiB
PHP
Raw Normal View History

2011-06-08 23:45:08 -05:00
<?php
2011-06-08 23:45:08 -05:00
/**
2011-11-25 11:33:50 -06:00
* Laravel - A PHP Framework For Web Artisans
2011-06-08 23:45:08 -05:00
*
* @package Laravel
2016-08-16 00:11:58 -04:00
* @author Taylor Otwell <taylor@laravel.com>
2011-06-08 23:45:08 -05:00
*/
2017-04-17 18:39:32 -03:00
define('LARAVEL_START', microtime(true));
2013-01-11 15:14:07 -06:00
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
2013-01-11 15:14:07 -06:00
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
2017-03-08 11:20:18 -06:00
| loading any of our classes later on. It feels great to relax.
2013-01-11 15:14:07 -06:00
|
*/
2017-04-17 18:39:32 -03:00
require __DIR__.'/../vendor/autoload.php';
2013-01-11 15:14:07 -06:00
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
2013-05-29 16:37:27 -04:00
| This bootstraps the framework and gets it ready for use, then it
2013-01-11 15:14:07 -06:00
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
2013-01-11 15:14:07 -06:00
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
2013-01-11 15:14:07 -06:00
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
2015-02-23 19:12:15 +01:00
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
2013-01-11 15:14:07 -06:00
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
2013-01-11 15:14:07 -06:00
|
*/
2014-08-18 22:46:16 -05:00
2015-06-08 10:29:33 +03:00
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
2014-11-06 20:06:47 -06:00
2020-06-24 13:03:02 -05:00
$response = tap($kernel->handle(
$request = Illuminate\Http\Request::capture()
2020-06-24 13:03:02 -05:00
))->send();
2014-11-06 20:06:47 -06:00
$kernel->terminate($request, $response);