winter/index.php

49 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2014-05-14 23:21:55 +10:00
<?php
/**
* Winter CMS - The PHP platform that gets back to basics.
2014-05-14 23:21:55 +10:00
*
* @package Winter
2014-05-14 23:21:55 +10:00
* @author Alexey Bobkov, Samuel Georges
*/
/*
|--------------------------------------------------------------------------
| Register composer
|--------------------------------------------------------------------------
|
| Composer provides a generated class loader for the application.
|
*/
require __DIR__.'/bootstrap/autoload.php';
2014-05-14 23:21:55 +10:00
/*
|--------------------------------------------------------------------------
| Load framework
2014-05-14 23:21:55 +10:00
|--------------------------------------------------------------------------
|
| This bootstraps the framework and loads up this application.
2014-05-14 23:21:55 +10:00
|
*/
2015-02-04 19:31:41 +11:00
$app = require_once __DIR__.'/bootstrap/app.php';
2014-05-14 23:21:55 +10:00
/*
|--------------------------------------------------------------------------
| Process request
2014-05-14 23:21:55 +10:00
|--------------------------------------------------------------------------
|
| Execute the request and send the response back to the client.
2014-05-14 23:21:55 +10:00
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
2015-02-04 19:31:41 +11:00
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);