summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-11-12 13:25:56 +0100
committerGitHub <noreply@github.com>2017-11-12 13:25:56 +0100
commitebc973bf221bfbde327868975221e62704e4cb99 (patch)
tree9011a160f3d6f9cae37fc02836e7d6e8c25242ca /config
parent801c17aa6cef91be988a25a90442be8d2078a70d (diff)
parentad948bdd3201e922b626a736b0122533bdd37cae (diff)
Merge pull request #349 from MyIgel/master
Changed container to Illuminate/Container and added service providers
Diffstat (limited to 'config')
-rw-r--r--config/app.php17
-rw-r--r--config/config.default.php8
2 files changed, 21 insertions, 4 deletions
diff --git a/config/app.php b/config/app.php
new file mode 100644
index 00000000..74eb2991
--- /dev/null
+++ b/config/app.php
@@ -0,0 +1,17 @@
+<?php
+
+// Application config
+
+return [
+ // Service providers
+ 'providers' => [
+ \Engelsystem\Logger\LoggerServiceProvider::class,
+ \Engelsystem\Exceptions\ExceptionsServiceProvider::class,
+ \Engelsystem\Config\ConfigServiceProvider::class,
+ \Engelsystem\Routing\RoutingServiceProvider::class,
+ \Engelsystem\Renderer\RendererServiceProvider::class,
+ \Engelsystem\Database\DatabaseServiceProvider::class,
+ \Engelsystem\Http\RequestServiceProvider::class,
+ \Engelsystem\Http\SessionServiceProvider::class,
+ ],
+];
diff --git a/config/config.default.php b/config/config.default.php
index c2d742ef..1bad9668 100644
--- a/config/config.default.php
+++ b/config/config.default.php
@@ -5,10 +5,10 @@
return [
// MySQL-Connection Settings
'database' => [
- 'host' => 'localhost',
- 'user' => 'root',
- 'pw' => '',
- 'db' => 'engelsystem',
+ 'host' => env('MYSQL_HOST', (env('CI', false) ? 'mysql' : 'localhost')),
+ 'user' => env('MYSQL_USER', 'root'),
+ 'pw' => env('MYSQL_PASSWORD', ''),
+ 'db' => env('MYSQL_DATABASE', 'engelsystem'),
],
// For accessing stats