summaryrefslogtreecommitdiff
path: root/app/Models/Factory.php
blob: 3ef68c41ded3eb83124bae12f5336f3a8cf648ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?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();
		}
	}
}