summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/DatabaseProvider.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2018-02-14 10:18:27 -0800
committerFrédéric Guillot <fred@kanboard.net>2018-02-14 10:18:27 -0800
commit0d578171feed5e09afc258346c183cf905333f4a (patch)
tree89e812512d4d6aa2e310538c9a2be8a030692176 /app/ServiceProvider/DatabaseProvider.php
parentb096e907cf003659cf1b504787363352191fc639 (diff)
Add timeout parameter for database connection
Diffstat (limited to 'app/ServiceProvider/DatabaseProvider.php')
-rw-r--r--app/ServiceProvider/DatabaseProvider.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/ServiceProvider/DatabaseProvider.php b/app/ServiceProvider/DatabaseProvider.php
index ccd5a7b9..704e8079 100644
--- a/app/ServiceProvider/DatabaseProvider.php
+++ b/app/ServiceProvider/DatabaseProvider.php
@@ -136,6 +136,7 @@ class DatabaseProvider implements ServiceProviderInterface
'ssl_ca' => DB_SSL_CA,
'ssl_cert' => DB_SSL_CERT,
'verify_server_cert' => DB_VERIFY_SERVER_CERT,
+ 'timeout' => DB_TIMEOUT,
));
}
@@ -156,6 +157,7 @@ class DatabaseProvider implements ServiceProviderInterface
'password' => DB_PASSWORD,
'database' => DB_NAME,
'port' => DB_PORT,
+ 'timeout' => DB_TIMEOUT,
));
}
}