]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/api/controllers/ApiController.php
namespacing: \Shaarli\History
[github/shaarli/Shaarli.git] / application / api / controllers / ApiController.php
index f35b923a0c52acf8826a61008b8f91f22c28b35f..47e0e1780919e6fc2b943d708ea0ef5672c0dc72 100644 (file)
@@ -2,6 +2,7 @@
 
 namespace Shaarli\Api\Controllers;
 
+use Shaarli\Config\ConfigManager;
 use \Slim\Container;
 
 /**
@@ -19,7 +20,7 @@ abstract class ApiController
     protected $ci;
 
     /**
-     * @var \ConfigManager
+     * @var ConfigManager
      */
     protected $conf;
 
@@ -28,6 +29,11 @@ abstract class ApiController
      */
     protected $linkDb;
 
+    /**
+     * @var \Shaarli\History
+     */
+    protected $history;
+
     /**
      * @var int|null JSON style option.
      */
@@ -35,7 +41,7 @@ abstract class ApiController
 
     /**
      * ApiController constructor.
-     * 
+     *
      * Note: enabling debug mode displays JSON with readable formatting.
      *
      * @param Container $ci Slim container.
@@ -45,6 +51,7 @@ abstract class ApiController
         $this->ci = $ci;
         $this->conf = $ci->get('conf');
         $this->linkDb = $ci->get('db');
+        $this->history = $ci->get('history');
         if ($this->conf->get('dev.debug', false)) {
             $this->jsonStyle = JSON_PRETTY_PRINT;
         } else {