diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-12-09 10:12:02 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-12-09 10:12:02 +0100 |
commit | 9772dbd19e5787c58bd9372145c14cdb97cb0031 (patch) | |
tree | 0724a0802aa30f80093e80e065fe2b5dd799db46 /apps/user_ldap | |
parent | 8bc4295cfad1ba65bad3c7c06af1f4a16b9bcba5 (diff) | |
download | nextcloud-server-9772dbd19e5787c58bd9372145c14cdb97cb0031.tar.gz nextcloud-server-9772dbd19e5787c58bd9372145c14cdb97cb0031.zip |
Fix LDAP application class instance created directly
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/appinfo/routes.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/user_ldap/appinfo/routes.php b/apps/user_ldap/appinfo/routes.php index 55b76e42df3..57499c8d4c3 100644 --- a/apps/user_ldap/appinfo/routes.php +++ b/apps/user_ldap/appinfo/routes.php @@ -1,4 +1,4 @@ -<?php +<?php declare(strict_types=1); /** * @copyright Copyright (c) 2016, ownCloud, Inc. * @@ -49,7 +49,8 @@ $application->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'], |