namespace Shaarli\Api\Controllers;
-use Shaarli\Bookmark\LinkDB;
+use Shaarli\Bookmark\BookmarkServiceInterface;
use Shaarli\Config\ConfigManager;
+use Shaarli\History;
use Slim\Container;
/**
protected $conf;
/**
- * @var LinkDB
+ * @var BookmarkServiceInterface
*/
- protected $linkDb;
+ protected $bookmarkService;
/**
- * @var HistoryController
+ * @var History
*/
protected $history;
{
$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;