mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-25 02:56:04 -05:00
14 lines
246 B
PHP
14 lines
246 B
PHP
<?php
|
|
|
|
class FreshRSS_Factory {
|
|
|
|
public static function createEntryDao() {
|
|
$db = Minz_Configuration::dataBase();
|
|
if ($db['type'] === 'sqlite') {
|
|
return new FreshRSS_EntryDAOSQLite();
|
|
} else {
|
|
return new FreshRSS_EntryDAO();
|
|
}
|
|
}
|
|
}
|