Merge pull request #18292 from nextcloud/fix/ldap-application-routes-instance

Fix LDAP application class instance created directly
This commit is contained in:
Roeland Jago Douma 2019-12-09 12:27:40 +01:00 committed by GitHub
commit 63a2725f3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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