summaryrefslogtreecommitdiffstats
path: root/external/itemapi.php
diff options
context:
space:
mode:
Diffstat (limited to 'external/itemapi.php')
-rw-r--r--external/itemapi.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/external/itemapi.php b/external/itemapi.php
index 4bb4f53af..53b88f4e4 100644
--- a/external/itemapi.php
+++ b/external/itemapi.php
@@ -26,22 +26,22 @@
namespace OCA\News\External;
use \OCA\AppFramework\Core\API;
+use \OCA\AppFramework\Controller\Controller;
use \OCA\AppFramework\Http\Request;
use \OCA\News\BusinessLayer\ItemBusinessLayer;
use \OCA\News\BusinessLayer\BusinessLayerException;
-class ItemAPI {
+class ItemAPI extends Controller {
private $itemBusinessLayer;
- private $api;
- private $request;
+ parent::__construct($api, $request);
public function __construct(API $api,
Request $request,
ItemBusinessLayer $itemBusinessLayer){
- $this->api = $api;
+ parent::__construct($api, $request);
$this->itemBusinessLayer = $itemBusinessLayer;
}