diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-02-25 13:18:36 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-25 22:21:24 +0100 |
commit | 59bbf272539185660dd291fb052ea4e12b251604 (patch) | |
tree | 465bd8ccbe6f5dfbd3282b732e64ce8dc02fed80 /lib | |
parent | c62eb9d6521f7671a4f75ad86ad4b563a82cfc13 (diff) | |
download | nextcloud-server-59bbf272539185660dd291fb052ea4e12b251604.tar.gz nextcloud-server-59bbf272539185660dd291fb052ea4e12b251604.zip |
remove IDb interface from core class usage
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/server.php | 2 | ||||
-rw-r--r-- | lib/private/tagging/tagmapper.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index a1e99274c7f..bc9d11404a6 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -77,7 +77,7 @@ class Server extends SimpleContainer implements IServerContainer { return new PreviewManager(); }); $this->registerService('TagMapper', function(Server $c) { - return new TagMapper($c->getDb()); + return new TagMapper($c->getDatabaseConnection()); }); $this->registerService('TagManager', function (Server $c) { $tagMapper = $c->query('TagMapper'); diff --git a/lib/private/tagging/tagmapper.php b/lib/private/tagging/tagmapper.php index dbeb5526524..ed9b8af25d2 100644 --- a/lib/private/tagging/tagmapper.php +++ b/lib/private/tagging/tagmapper.php @@ -22,7 +22,7 @@ namespace OC\Tagging; use \OCP\AppFramework\Db\Mapper, \OCP\AppFramework\Db\DoesNotExistException, - \OCP\IDb; + \OCP\IDBConnection; /** * Mapper for Tag entity @@ -32,9 +32,9 @@ class TagMapper extends Mapper { /** * Constructor. * - * @param IDb $db Instance of the Db abstraction layer. + * @param IDBConnection $db Instance of the Db abstraction layer. */ - public function __construct(IDb $db) { + public function __construct(IDBConnection $db) { parent::__construct($db, 'vcategory', 'OC\Tagging\Tag'); } |