diff --git a/apps/provisioning_api/lib/AppInfo/Application.php b/apps/provisioning_api/lib/AppInfo/Application.php index 7e9e04978f..4bf7eb7445 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 6991d12da7..3708d967c9 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'] ); });