summaryrefslogtreecommitdiff
path: root/app/ServiceProvider
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-06 19:19:05 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-06 19:19:05 -0400
commit400e230881bc71e052ee41da660ec5ff8dd3130d (patch)
treedfe32f874dca7f93c37ac5184941a8932293119a /app/ServiceProvider
parent72dcb6fc9b48a2b0c730b499685052bf256cf3c2 (diff)
Added support for Mysql SSL connection
Diffstat (limited to 'app/ServiceProvider')
-rw-r--r--app/ServiceProvider/DatabaseProvider.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/ServiceProvider/DatabaseProvider.php b/app/ServiceProvider/DatabaseProvider.php
index d323807d..26662b8a 100644
--- a/app/ServiceProvider/DatabaseProvider.php
+++ b/app/ServiceProvider/DatabaseProvider.php
@@ -10,6 +10,13 @@ use PicoDb\Database;
class DatabaseProvider implements ServiceProviderInterface
{
+ /**
+ * Register provider
+ *
+ * @access public
+ * @param Container $container
+ * @return Container
+ */
public function register(Container $container)
{
$container['db'] = $this->getInstance();
@@ -83,6 +90,9 @@ class DatabaseProvider implements ServiceProviderInterface
'database' => DB_NAME,
'charset' => 'utf8',
'port' => DB_PORT,
+ 'ssl_key' => DB_SSL_KEY,
+ 'ssl_ca' => DB_SSL_CA,
+ 'ssl_cert' => DB_SSL_CERT,
));
}