From 8e9bbe581c9ee4cdd538bf798e5d72780ef82437 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 1 May 2015 12:21:39 +0200 Subject: [PATCH] default APP_ENVRIONMENT to localhost --- app/bootstrap/config.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/bootstrap/config.php b/app/bootstrap/config.php index a8fe7bb..cbf70d2 100644 --- a/app/bootstrap/config.php +++ b/app/bootstrap/config.php @@ -1,15 +1,19 @@ share(Config::class) ->define(Config::class, [ ":array" => parse_ini_file(__DIR__."/../config.ini", true), - ":section" => getenv("APP_ENVIRONMENT") + ":section" => APP_ENVIRONMENT ]) ->prepare(Config::class, function(Config $config) { $credentials = parse_ini_file(__DIR__."/../credentials.ini", true); - foreach (new Config($credentials, getenv("APP_ENVIRONMENT")) as $app => $creds) { + foreach (new Config($credentials, APP_ENVIRONMENT) as $app => $creds) { /* one level down should suffice, i.e. $config->github->client = {id,secret,scope} */ if ($creds instanceof Config) { foreach ($creds as $key => $val) { -- 2.30.2