diff options
Diffstat (limited to 'db/mapperfactory.php')
-rw-r--r-- | db/mapperfactory.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/db/mapperfactory.php b/db/mapperfactory.php index af2640a33..ff14042d0 100644 --- a/db/mapperfactory.php +++ b/db/mapperfactory.php @@ -20,16 +20,16 @@ use \OCA\News\Core\Db; class MapperFactory { - private $settings; + private $dbType; - public function __construct(IConfig $settings, Db $db) { - $this->settings = $settings; + public function __construct($dbType, Db $db) { + $this->dbType = $dbType; $this->db = $db; } public function getItemMapper() { - switch($this->settings->getSystemValue('dbtype')) { + switch($this->dbType) { case 'pgsql': return new \OCA\News\Db\Postgres\ItemMapper($this->db); break; |