summaryrefslogtreecommitdiffstats
path: root/external/folderapi.php
diff options
context:
space:
mode:
Diffstat (limited to 'external/folderapi.php')
-rw-r--r--external/folderapi.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/external/folderapi.php b/external/folderapi.php
index 283230fdc..7d490ded4 100644
--- a/external/folderapi.php
+++ b/external/folderapi.php
@@ -26,22 +26,21 @@
namespace OCA\News\External;
use \OCA\AppFramework\Core\API;
+use \OCA\AppFramework\Controller\Controller;
use \OCA\AppFramework\Http\Request;
use \OCA\News\BusinessLayer\FolderBusinessLayer;
use \OCA\News\BusinessLayer\BusinessLayerException;
-class FolderAPI {
+class FolderAPI extends Controller {
private $folderBusinessLayer;
- private $api;
- private $request;
public function __construct(API $api,
Request $request,
FolderBusinessLayer $folderBusinessLayer){
- $this->api = $api;
+ parent::__construct($api, $request);
$this->folderBusinessLayer = $folderBusinessLayer;
}