Files
spa-api/bootstrap/start.php

73 lines
2.3 KiB
PHP
Raw Normal View History

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
| so you can just specify a machine name or HTTP host that matches a
| given environment, then we will automatically detect it for you.
2013-01-11 15:14:07 -06:00
|
*/
2013-02-06 22:04:36 -06:00
$env = $app->detectEnvironment(array(
2013-02-06 22:04:36 -06:00
'local' => array('your-machine-name'),
2013-02-06 22:04:36 -06:00
));
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.
|
*/
$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.
|
*/
return $app;