Fix LDAP application class instance created directly

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2019-12-09 10:12:02 +01:00
parent 8bc4295cfa
commit 9772dbd19e
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
1 changed files with 3 additions and 2 deletions

View File

@ -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'],