|
*/
$objEnv = new Weloquent\Config\Environment(dirname(ABSPATH));
$env = $objEnv->which();
$app['env'] = $env;
/*
|--------------------------------------------------------------------------
| Bind Paths
|--------------------------------------------------------------------------
|
| 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.
|
*/
$app->bindInstallPaths(require SRC_PATH . '/bootstrap/paths.php');
/*
|--------------------------------------------------------------------------
| Bind The Application In The Container
|--------------------------------------------------------------------------
|
| This may look strange, but we actually want to bind the app into itself
| in case we need to Facade test an application. This will allow us to
| resolve the "app" key out of this container for this app's facade.
|
*/
$app->instance('app', $app);
/*
|--------------------------------------------------------------------------
| Check For The Test Environment
|--------------------------------------------------------------------------