detectEnvironment(array( 'local' => array('localhost', '*.dev', '*.app'), )); /* |-------------------------------------------------------------------------- | Check For The Test Environment |-------------------------------------------------------------------------- | | If the "unitTesting" variable is set, it means we are running the unit | tests for the application and should override this environment here | so we use the right configuration. The flag gets set by TestCase. | */ if (isset($unitTesting)) $app['env'] = $testEnvironment; /* |-------------------------------------------------------------------------- | Register The Configuration Loader |-------------------------------------------------------------------------- | | The configuration loader is responsible for loading the configuration | options for the application. By default we'll use the "file" loader | but you are free to use any custom loaders with your application. | */ $app['config.loader'] = $app->share(function($app) { $path = $app['path'].'/config'; return new FileLoader(new Filesystem, $path); }); /* |-------------------------------------------------------------------------- | Load The Application |-------------------------------------------------------------------------- | | Here we will load the Illuminate application. We keep this is in | a separate location so we can isolate the creation of the it | from the actual running of the application, allowing us | to easily test and inspect the application outside | of a web request context such as with PHPUnit. | */ require __DIR__.'/vendor/illuminate/foundation/src/start.php'; return $app;