]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/api/controllers/ApiController.php
Merge branch 'master' into v0.12
[github/shaarli/Shaarli.git] / application / api / controllers / ApiController.php
index a6e7cbab23565007a71f85ac2338f54a930bae6f..88a845ebc0b8557be699a5292b4a55c91911dc6a 100644 (file)
@@ -2,8 +2,9 @@
 
 namespace Shaarli\Api\Controllers;
 
-use Shaarli\Bookmark\LinkDB;
+use Shaarli\Bookmark\BookmarkServiceInterface;
 use Shaarli\Config\ConfigManager;
+use Shaarli\History;
 use Slim\Container;
 
 /**
@@ -26,12 +27,12 @@ abstract class ApiController
     protected $conf;
 
     /**
-     * @var LinkDB
+     * @var BookmarkServiceInterface
      */
-    protected $linkDb;
+    protected $bookmarkService;
 
     /**
-     * @var HistoryController
+     * @var History
      */
     protected $history;
 
@@ -51,7 +52,7 @@ abstract class ApiController
     {
         $this->ci = $ci;
         $this->conf = $ci->get('conf');
-        $this->linkDb = $ci->get('db');
+        $this->bookmarkService = $ci->get('db');
         $this->history = $ci->get('history');
         if ($this->conf->get('dev.debug', false)) {
             $this->jsonStyle = JSON_PRETTY_PRINT;