Cachet/public/index.php

58 lines
1.8 KiB
PHP
Raw Normal View History

2014-11-16 22:26:08 +00:00
<?php
2015-04-18 16:55:51 +01:00
/*
* This file is part of Cachet.
*
2015-07-06 17:37:01 +01:00
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2014-11-16 22:26:08 +00:00
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
2015-03-20 18:30:45 -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
| loading any of our classes later on. It feels nice to relax.
2014-11-16 22:26:08 +00:00
|
*/
require __DIR__.'/../bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
2015-03-20 18:30:45 -06:00
| We need to illuminate PHP development, so let us turn on the lights.
2014-11-16 22:26:08 +00:00
| 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
2015-03-20 18:30:45 -06:00
| the responses back to the browser and delight our users.
2014-11-16 22:26:08 +00:00
|
*/
2015-03-20 18:30:45 -06:00
$app = require_once __DIR__.'/../bootstrap/app.php';
2014-11-16 22:26:08 +00:00
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
2015-03-20 18:30:45 -06:00
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
2014-11-16 22:26:08 +00:00
| the client's browser allowing them to enjoy the creative
2015-03-20 18:30:45 -06:00
| and wonderful application we have prepared for them.
2014-11-16 22:26:08 +00:00
|
*/
2015-03-20 18:30:45 -06:00
$kernel = $app->make('Illuminate\Contracts\Http\Kernel');
2015-04-19 09:11:53 +01:00
$request = Illuminate\Http\Request::capture();
$response = $kernel->handle($request);
2015-03-20 18:30:45 -06:00
$response->send();
$kernel->terminate($request, $response);