diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-10-24 10:11:06 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-10-24 10:11:06 +0200 |
commit | 0f07e437602b7a2d0258a17c9de2c01efb6876c3 (patch) | |
tree | d89c0cf5e81c466180c60e4874a2efc98319d434 /apps/user_ldap/lib/Mapping/UserMapping.php | |
parent | 2228a7b37497a7b51c35f55fae494b4e649b5d0f (diff) | |
download | nextcloud-server-0f07e437602b7a2d0258a17c9de2c01efb6876c3.tar.gz nextcloud-server-0f07e437602b7a2d0258a17c9de2c01efb6876c3.zip |
Get rid of calls to OCP\Server which is not available is 24
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/lib/Mapping/UserMapping.php')
-rw-r--r-- | apps/user_ldap/lib/Mapping/UserMapping.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Mapping/UserMapping.php b/apps/user_ldap/lib/Mapping/UserMapping.php index ade9c67213a..31c7a5ec768 100644 --- a/apps/user_ldap/lib/Mapping/UserMapping.php +++ b/apps/user_ldap/lib/Mapping/UserMapping.php @@ -25,7 +25,6 @@ namespace OCA\User_LDAP\Mapping; use OCP\HintException; use OCP\IDBConnection; use OCP\IRequest; -use OCP\Server; use OCP\Support\Subscription\IAssertion; /** @@ -53,7 +52,7 @@ class UserMapping extends AbstractMapping { static $isProvisioningApi = null; if ($isProvisioningApi === null) { - $request = Server::get(IRequest::class); + $request = \OC::$server->get(IRequest::class); $isProvisioningApi = \preg_match(self::PROV_API_REGEX, $request->getRequestUri()) === 1; } if ($isProvisioningApi) { |