summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-11-02 11:54:11 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-11-02 19:20:37 +0100
commit2452a3ec732263a598c225bbb0991f24c3cbbcec (patch)
tree2b14b2d395581ab90b4167c3c222413ad031ac21
parent0e5147f0013b3ef19736e0ccc4a23e46defbe14c (diff)
downloadnextcloud-server-2452a3ec732263a598c225bbb0991f24c3cbbcec.tar.gz
nextcloud-server-2452a3ec732263a598c225bbb0991f24c3cbbcec.zip
Properly query the methodreflector
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r--apps/provisioning_api/lib/AppInfo/Application.php3
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php2
2 files changed, 3 insertions, 2 deletions
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
);
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php
index 6991d12da7c..3708d967c9d 100644
--- a/lib/private/AppFramework/DependencyInjection/DIContainer.php
+++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php
@@ -164,7 +164,7 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return new Dispatcher(
$c['Protocol'],
$c['MiddlewareDispatcher'],
- $c['ControllerMethodReflector'],
+ $c->query(IControllerMethodReflector::class),
$c['Request']
);
});