namespace Shaarli\Api\Controllers;
+use Shaarli\Bookmark\BookmarkServiceInterface;
use Shaarli\Config\ConfigManager;
-use \Slim\Container;
+use Shaarli\History;
+use Slim\Container;
/**
* Abstract Class ApiController
protected $conf;
/**
- * @var \LinkDB
+ * @var BookmarkServiceInterface
*/
- protected $linkDb;
+ protected $bookmarkService;
/**
- * @var \History
+ * @var History
*/
protected $history;
/**
* ApiController constructor.
- *
+ *
* Note: enabling debug mode displays JSON with readable formatting.
*
* @param Container $ci Slim container.
{
$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;