Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.04 KB

lumen.md

File metadata and controls

44 lines (35 loc) · 1.04 KB

The Front Controller for Lumen Framework.

start.php

<?php

/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| First we need to get an application instance. This creates an instance
| of the application / container and bootstraps the application so it
| is ready to receive HTTP / Console requests from the environment.
|
*/
global $app;

$app = require __DIR__.'/bootstrap/app.php';

/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/

function run()
{
    global $app;

    ob_start();

    $app->run();
   
    return ob_get_clean();
}