2013-01-11 15:14:07 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Create The Application
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| The first thing we will do is create a new Laravel application instance
|
|
|
|
|
| which serves as the "glue" for all the components of Laravel, and is
|
|
|
|
|
| the IoC container for the system binding all of the various parts.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
$app = new Illuminate\Foundation\Application;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
2013-02-06 22:04:36 -06:00
|
|
|
| Detect The Application Environment
|
2013-01-11 15:14:07 -06:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
2013-02-06 22:04:36 -06:00
|
|
|
| Laravel takes a dead simple approach to your application environments
|
2013-11-27 11:40:42 -06:00
|
|
|
| so you can just specify a machine name for the host that matches a
|
2013-02-06 22:04:36 -06:00
|
|
|
| given environment, then we will automatically detect it for you.
|
2013-01-11 15:14:07 -06:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2014-06-23 21:22:55 -05:00
|
|
|
require __DIR__.'/environment.php';
|
2013-01-11 15:14:07 -06:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
2013-02-06 22:04:36 -06:00
|
|
|
| Bind Paths
|
2013-01-11 15:14:07 -06:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
2013-02-06 22:04:36 -06:00
|
|
|
| Here we are binding the paths configured in paths.php to the app. You
|
|
|
|
|
| should not be changing these here. If you need to change these you
|
|
|
|
|
| may do so within the paths.php file and they will be bound here.
|
2013-01-11 15:14:07 -06:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2013-02-06 22:11:29 -06:00
|
|
|
$app->bindInstallPaths(require __DIR__.'/paths.php');
|
2013-01-11 15:14:07 -06:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Load The Application
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
2013-10-30 09:46:32 -05:00
|
|
|
| Here we will load this Illuminate application. We will keep this in a
|
2013-01-11 15:14:07 -06:00
|
|
|
| separate location so we can isolate the creation of an application
|
|
|
|
|
| from the actual running of the application with a given request.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2014-01-18 21:58:24 -06:00
|
|
|
$framework = $app['path.base'].
|
|
|
|
|
'/vendor/laravel/framework/src';
|
2013-03-25 08:32:19 -05:00
|
|
|
|
|
|
|
|
require $framework.'/Illuminate/Foundation/start.php';
|
2013-01-11 15:14:07 -06:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Return The Application
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| This script returns the application instance. The instance is given to
|
|
|
|
|
| the calling script so we can separate the building of the instances
|
|
|
|
|
| from the actual running of the application and sending responses.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2013-02-07 09:12:56 +11:00
|
|
|
return $app;
|