Skip to content

Commit b453fea

Browse files
Merge pull request #29525 from nextcloud/bugfix/noid/allow-to-inject-by-public-interface
Allow to inject the trusted domain helper by public interface
2 parents 5705af2 + de26160 commit b453fea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/private/Server.php

+2
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226
use OCP\Security\ICrypto;
227227
use OCP\Security\IHasher;
228228
use OCP\Security\ISecureRandom;
229+
use OCP\Security\ITrustedDomainHelper;
229230
use OCP\Security\VerificationToken\IVerificationToken;
230231
use OCP\Share\IShareHelper;
231232
use OCP\SystemTag\ISystemTagManager;
@@ -968,6 +969,7 @@ public function __construct($webRoot, \OC\Config $config) {
968969
$this->registerDeprecatedAlias('AsyncCommandBus', IBus::class);
969970
/** @deprecated 20.0.0 */
970971
$this->registerDeprecatedAlias('TrustedDomainHelper', TrustedDomainHelper::class);
972+
$this->registerAlias(ITrustedDomainHelper::class, TrustedDomainHelper::class);
971973
/** @deprecated 19.0.0 */
972974
$this->registerDeprecatedAlias('Throttler', Throttler::class);
973975
$this->registerService('IntegrityCodeChecker', function (ContainerInterface $c) {

0 commit comments

Comments
 (0)