From 9772dbd19e5787c58bd9372145c14cdb97cb0031 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 9 Dec 2019 10:12:02 +0100 Subject: [PATCH] Fix LDAP application class instance created directly Signed-off-by: Christoph Wurst --- apps/user_ldap/appinfo/routes.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/user_ldap/appinfo/routes.php b/apps/user_ldap/appinfo/routes.php index 55b76e42df..57499c8d4c 100644 --- a/apps/user_ldap/appinfo/routes.php +++ b/apps/user_ldap/appinfo/routes.php @@ -1,4 +1,4 @@ -registerRoutes($this, [ ] ]); -$application = new OCA\User_LDAP\AppInfo\Application(); +/** @var \OCA\User_LDAP\AppInfo\Application $application */ +$application = \OC::$server->query(\OCA\User_LDAP\AppInfo\Application::class); $application->registerRoutes($this, [ 'routes' => [ ['name' => 'renewPassword#tryRenewPassword', 'url' => '/renewpassword', 'verb' => 'POST'],