X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2Fapi%2Fcontrollers%2FApiController.php;h=88a845ebc0b8557be699a5292b4a55c91911dc6a;hb=39b75ea9836054df22a377f0f0f28d6ac9a19dc2;hp=3be85b983a1fc62b6d2c272486c460e2f3664959;hpb=5177d8e57427ac01e788079b8e61065f038df5d2;p=github%2Fshaarli%2FShaarli.git diff --git a/application/api/controllers/ApiController.php b/application/api/controllers/ApiController.php index 3be85b98..88a845eb 100644 --- a/application/api/controllers/ApiController.php +++ b/application/api/controllers/ApiController.php @@ -2,8 +2,10 @@ namespace Shaarli\Api\Controllers; +use Shaarli\Bookmark\BookmarkServiceInterface; use Shaarli\Config\ConfigManager; -use \Slim\Container; +use Shaarli\History; +use Slim\Container; /** * Abstract Class ApiController @@ -25,12 +27,12 @@ abstract class ApiController protected $conf; /** - * @var \LinkDB + * @var BookmarkServiceInterface */ - protected $linkDb; + protected $bookmarkService; /** - * @var \History + * @var History */ protected $history; @@ -41,7 +43,7 @@ abstract class ApiController /** * ApiController constructor. - * + * * Note: enabling debug mode displays JSON with readable formatting. * * @param Container $ci Slim container. @@ -50,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;