Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-09 12:12:02 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-09 12:12:02 +0300
commit9772dbd19e5787c58bd9372145c14cdb97cb0031 (patch)
tree0724a0802aa30f80093e80e065fe2b5dd799db46 /apps/user_ldap
parent8bc4295cfad1ba65bad3c7c06af1f4a16b9bcba5 (diff)
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.php5
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'],