diff options
| author | 2014-07-03 22:48:29 +0200 | |
|---|---|---|
| committer | 2014-07-03 22:48:29 +0200 | |
| commit | b34f59e85aa851b82210fdc50074918034f960db (patch) | |
| tree | ab7dcdb13d84454c8a6848a8ea91f293f4d3a1d7 /app/Models/Factory.php | |
| parent | 2501bb337e75c41f97570f25775e20131faf2f2a (diff) | |
Preparation #3 for SQLite
https://github.com/marienfressinaud/FreshRSS/issues/100
Diffstat (limited to 'app/Models/Factory.php')
| -rw-r--r-- | app/Models/Factory.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/Models/Factory.php b/app/Models/Factory.php index 3ef68c41d..95d21a277 100644 --- a/app/Models/Factory.php +++ b/app/Models/Factory.php @@ -2,6 +2,15 @@ class FreshRSS_Factory { + public static function createFeedDao() { + $db = Minz_Configuration::dataBase(); + if ($db['type'] === 'sqlite') { + return new FreshRSS_FeedDAOSQLite(); + } else { + return new FreshRSS_FeedDAO(); + } + } + public static function createEntryDao() { $db = Minz_Configuration::dataBase(); if ($db['type'] === 'sqlite') { |
