summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-11-02 17:06:31 +0100
committerJoas Schilling <coding@schilljs.com>2021-11-03 11:06:19 +0100
commitde26160778500a02bc22d0b14e52bbd03fa86749 (patch)
tree394d9d5572578fe627713de103a9fc3be59e3b0b /lib/private/Server.php
parent95480f5a91ce6b5ff0135d6ec62c36cbf2f121b8 (diff)
downloadnextcloud-server-de26160778500a02bc22d0b14e52bbd03fa86749.tar.gz
nextcloud-server-de26160778500a02bc22d0b14e52bbd03fa86749.zip
Allow to inject the trusted domain helper by public interface
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Server.php')
-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) {