summaryrefslogtreecommitdiffstats
path: root/external/itemapi.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-05-02 16:57:57 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-05-02 16:57:57 +0200
commitd89931b22abdcfe2ab4c6f4feb3b889d15524277 (patch)
treee540f046949adc249bffe034e92377fe9b069f15 /external/itemapi.php
parent85534b81680c650a3470a1f2f98604b390603991 (diff)
use controller parent class for external api
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;
}