123456789101112131415161718192021222324252627282930313233343536373839 |
- <?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();
- header(HeaderDate::$date); // To pass the bench, nginx auto add it
-
- return ob_get_clean();
- }
|