Pony.fm/public/index.php

61 lines
1.8 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
2017-11-28 06:44:31 +01:00
* @author Taylor Otwell <taylor@laravel.com>
2013-07-25 23:33:04 +02:00
*/
2017-11-28 08:00:11 +01:00
define('LARAVEL_START', microtime(true));
2013-07-25 23:33:04 +02:00
/*
|--------------------------------------------------------------------------
| 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
2017-11-28 06:44:31 +01:00
| loading any of our classes later on. It feels great to relax.
2013-07-25 23:33:04 +02:00
|
*/
2017-11-28 08:00:11 +01:00
require __DIR__.'/../vendor/autoload.php';
2013-07-25 23:33:04 +02:00
/*
|--------------------------------------------------------------------------
| 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);