summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-11-05 12:16:36 +0100
committerGitHub <noreply@github.com>2018-11-05 12:16:36 +0100
commitcba3883410f958305673f75950c5b6227c571f16 (patch)
tree50c627bd8a4d60daa8ae968e64c96b40509e39b7 /apps
parent934d08b2e8b0f6f8616882b9c08d1bec4db22eb2 (diff)
parentc8cf98652730391dcab1e25494981a901c25ca8d (diff)
downloadnextcloud-server-cba3883410f958305673f75950c5b6227c571f16.tar.gz
nextcloud-server-cba3883410f958305673f75950c5b6227c571f16.zip
Merge pull request #12185 from nextcloud/cleanup/dicontainer
Cleanup the DIContainer
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/AppInfo/Application.php3
-rw-r--r--apps/provisioning_api/lib/AppInfo/Application.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php
index a7d4755fbf0..195d56f3539 100644
--- a/apps/files_sharing/lib/AppInfo/Application.php
+++ b/apps/files_sharing/lib/AppInfo/Application.php
@@ -37,6 +37,7 @@ use OC\AppFramework\Utility\SimpleContainer;
use OCA\Files_Sharing\Controller\ExternalSharesController;
use OCA\Files_Sharing\Controller\ShareController;
use OCA\Files_Sharing\Middleware\SharingCheckMiddleware;
+use OCP\AppFramework\Utility\IControllerMethodReflector;
use OCP\Defaults;
use OCP\Federation\ICloudIdManager;
use \OCP\IContainer;
@@ -120,7 +121,7 @@ class Application extends App {
$c->query('AppName'),
$server->getConfig(),
$server->getAppManager(),
- $c['ControllerMethodReflector'],
+ $server->query(IControllerMethodReflector::class),
$server->getShareManager(),
$server->getRequest()
);
diff --git a/apps/provisioning_api/lib/AppInfo/Application.php b/apps/provisioning_api/lib/AppInfo/Application.php
index 7e9e04978fe..4bf7eb7445c 100644
--- a/apps/provisioning_api/lib/AppInfo/Application.php
+++ b/apps/provisioning_api/lib/AppInfo/Application.php
@@ -29,6 +29,7 @@ use OC\AppFramework\Utility\TimeFactory;
use OC\Settings\Mailer\NewUserMailHelper;
use OCA\Provisioning_API\Middleware\ProvisioningApiMiddleware;
use OCP\AppFramework\App;
+use OCP\AppFramework\Utility\IControllerMethodReflector;
use OCP\Defaults;
use OCP\Util;
@@ -57,7 +58,7 @@ class Application extends App {
$isAdmin = $user !== null ? $server->getGroupManager()->isAdmin($user->getUID()) : false;
$isSubAdmin = $user !== null ? $server->getGroupManager()->getSubAdmin()->isSubAdmin($user) : false;
return new ProvisioningApiMiddleware(
- $c['ControllerMethodReflector'],
+ $c->query(IControllerMethodReflector::class),
$isAdmin,
$isSubAdmin
);