summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-10 09:41:33 +0200
committerJoas Schilling <coding@schilljs.com>2017-05-10 09:42:15 +0200
commit9c8fe8200019c0e6345cd8e73bb2d81742781839 (patch)
treee119c8dc2f608485c8bf831852da1cb3dc5aa2ef /core/Controller
parent209b05489d442652fa4d7ce3a7b37568444b5ae4 (diff)
downloadnextcloud-server-9c8fe8200019c0e6345cd8e73bb2d81742781839.tar.gz
nextcloud-server-9c8fe8200019c0e6345cd8e73bb2d81742781839.zip
Automatic injection for JsController
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/JsController.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Controller/JsController.php b/core/Controller/JsController.php
index c7c9dea9101..1a025edbcad 100644
--- a/core/Controller/JsController.php
+++ b/core/Controller/JsController.php
@@ -22,6 +22,7 @@
*/
namespace OC\Core\Controller;
+use OC\Files\AppData\Factory;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\NotFoundResponse;
@@ -44,13 +45,13 @@ class JsController extends Controller {
/**
* @param string $appName
* @param IRequest $request
- * @param IAppData $appData
+ * @param Factory $appDataFactory
* @param ITimeFactory $timeFactory
*/
- public function __construct($appName, IRequest $request, IAppData $appData, ITimeFactory $timeFactory) {
+ public function __construct($appName, IRequest $request, Factory $appDataFactory, ITimeFactory $timeFactory) {
parent::__construct($appName, $request);
- $this->appData = $appData;
+ $this->appData = $appDataFactory->get('js');
$this->timeFactory = $timeFactory;
}