From 37c8b87cd0a33793ca9c88832d500fc3a010b8a6 Mon Sep 17 00:00:00 2001 From: sosuke-ito Date: Tue, 4 Oct 2016 19:01:29 +0900 Subject: [PATCH] use db connection in constructor --- src/DbAppPackage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DbAppPackage.php b/src/DbAppPackage.php index f90d159..2b04032 100644 --- a/src/DbAppPackage.php +++ b/src/DbAppPackage.php @@ -68,10 +68,10 @@ protected function configure() // database $this->install( new AuraSqlModule( - $_ENV['DB_DSN'], - $_ENV['DB_USER'], - $_ENV['DB_PASS'], - $_ENV['DB_READ'] + $this->dsn, + $this->user, + $this->pass, + $this->read ) ); $this->install(new QueryLocatorModule($this->dbDir . '/sql'));