Pony.fm/public/index.php

59 lines
1.7 KiB
PHP
Raw Permalink Normal View History

2013-07-25 23:33:04 +02:00
<?php
2015-08-30 13:22:00 +02:00
2013-07-25 23:33:04 +02:00
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
2015-08-30 13:22:00 +02: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.
2013-07-25 23:33:04 +02:00
|
*/
require __DIR__.'/../bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
2015-08-30 13:22:00 +02:00
| 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
2013-07-25 23:33:04 +02:00
| will load up this application so that we can run it and send
2015-08-30 13:22:00 +02:00
| the responses back to the browser and delight our users.
2013-07-25 23:33:04 +02:00
|
*/
2015-08-30 13:22:00 +02:00
$app = require_once __DIR__.'/../bootstrap/app.php';
2013-07-25 23:33:04 +02:00
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
2015-08-30 13:22:00 +02:00
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
2013-07-25 23:33:04 +02:00
| the client's browser allowing them to enjoy the creative
2015-08-30 13:22:00 +02:00
| and wonderful application we have prepared for them.
2013-07-25 23:33:04 +02:00
|
*/
2015-08-30 13:22:00 +02:00
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
2013-07-25 23:33:04 +02:00
2015-08-30 13:22:00 +02:00
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
2013-07-25 23:33:04 +02:00
2015-08-30 13:22:00 +02:00
$kernel->terminate($request, $response);