From 94e719132b7f08cd7d85968db13f7f60fdd6c9cd Mon Sep 17 00:00:00 2001 From: Christophe LATOUR Date: Mon, 24 Jul 2017 12:25:13 +0200 Subject: [PATCH] using constants to load prestashop config --- .env_dev | 17 ----------------- .gitignore | 1 - bootstrap/app.php | 9 +++------ config/.gitignore | 2 +- config/api.php | 15 +++++++++++++++ config/env.local.php | 7 +++++++ config/env.pprod.php | 7 +++++++ 7 files changed, 33 insertions(+), 25 deletions(-) delete mode 100644 .env_dev create mode 100644 config/api.php create mode 100644 config/env.local.php create mode 100644 config/env.pprod.php diff --git a/.env_dev b/.env_dev deleted file mode 100644 index f3a3c59..0000000 --- a/.env_dev +++ /dev/null @@ -1,17 +0,0 @@ -APP_ENV=local -APP_DEBUG=true -APP_KEY=e!MV*C9N*B5&#FJbyf*2c8m5QOJOGeQ6&8eCL_qo -APP_TIMEZONE=UTC - -DB_CONNECTION=mysql -DB_HOST=192.168.0.44 -DB_PORT=3306 -DB_DATABASE=brico_dev -DB_USERNAME=brico_dev -DB_PASSWORD=brico_dev42 - -DOMAIN_STATIC=www.bricoprive.com - - -CACHE_DRIVER=file -QUEUE_DRIVER=sync diff --git a/.gitignore b/.gitignore index 33cb822..7eaa34f 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ config.codekit .DS_Store? .env .env.php -.env.*.php Homestead.json Homestead.yaml .idea diff --git a/bootstrap/app.php b/bootstrap/app.php index 06a6d5b..6da1a77 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -1,13 +1,10 @@ [ + 'models' => [ + 'ApiTag' => 'App\Models\Tag', + 'ApiCart' => 'App\Models\Cart', + 'ApiCarrier' => 'App\Models\Carrier', + 'ApiOrderDetail' => 'App\Models\Order\OrderDetail' + ], + 'controllers' => [ + 'ApiBaseController' => 'App\Web\Controllers\Controller', + ], + ], +); \ No newline at end of file diff --git a/config/env.local.php b/config/env.local.php new file mode 100644 index 0000000..4b91238 --- /dev/null +++ b/config/env.local.php @@ -0,0 +1,7 @@ +