diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-12-09 12:27:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-09 12:27:40 +0100 |
commit | 63a2725f3d38fe8e5e767cd62f65330776435811 (patch) | |
tree | 0724a0802aa30f80093e80e065fe2b5dd799db46 | |
parent | 8bc4295cfad1ba65bad3c7c06af1f4a16b9bcba5 (diff) | |
parent | 9772dbd19e5787c58bd9372145c14cdb97cb0031 (diff) | |
download | nextcloud-server-63a2725f3d38fe8e5e767cd62f65330776435811.tar.gz nextcloud-server-63a2725f3d38fe8e5e767cd62f65330776435811.zip |
Merge pull request #18292 from nextcloud/fix/ldap-application-routes-instance
Fix LDAP application class instance created directly
-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'], |