aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-11-03 14:16:12 +0100
committerGitHub <noreply@github.com>2021-11-03 14:16:12 +0100
commitb453fea4da230883619aba2df83da4ca9bb05b3a (patch)
tree49392e657e4fb70c1c5980c078a61e8f9953b388 /lib
parent5705af29a5a06c78d0b36dcee5047ba893e7e867 (diff)
parentde26160778500a02bc22d0b14e52bbd03fa86749 (diff)
downloadnextcloud-server-b453fea4da230883619aba2df83da4ca9bb05b3a.tar.gz
nextcloud-server-b453fea4da230883619aba2df83da4ca9bb05b3a.zip
Merge pull request #29525 from nextcloud/bugfix/noid/allow-to-inject-by-public-interface
Allow to inject the trusted domain helper by public interface
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Server.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 529e2eacfc3..635bd80d4f8 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -226,6 +226,7 @@ use OCP\Security\ICredentialsManager;
use OCP\Security\ICrypto;
use OCP\Security\IHasher;
use OCP\Security\ISecureRandom;
+use OCP\Security\ITrustedDomainHelper;
use OCP\Security\VerificationToken\IVerificationToken;
use OCP\Share\IShareHelper;
use OCP\SystemTag\ISystemTagManager;
@@ -968,6 +969,7 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerDeprecatedAlias('AsyncCommandBus', IBus::class);
/** @deprecated 20.0.0 */
$this->registerDeprecatedAlias('TrustedDomainHelper', TrustedDomainHelper::class);
+ $this->registerAlias(ITrustedDomainHelper::class, TrustedDomainHelper::class);
/** @deprecated 19.0.0 */
$this->registerDeprecatedAlias('Throttler', Throttler::class);
$this->registerService('IntegrityCodeChecker', function (ContainerInterface $c) {