Skip to content

Commit e704bab

Browse files
committed
refactor(handler): forward CrlRevocationChecker in CfsslHandler
Adds CrlRevocationChecker as the last constructor parameter and forwards it to parent::__construct, closing the DI chain introduced in AEngineHandler. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 0b91921 commit e704bab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Handler/CertificateEngine/CfsslHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use OCA\Libresign\Helper\ConfigureCheckHelper;
2121
use OCA\Libresign\Service\CaIdentifierService;
2222
use OCA\Libresign\Service\CertificatePolicyService;
23+
use OCA\Libresign\Service\Crl\CrlRevocationChecker;
2324
use OCA\Libresign\Service\Install\InstallService;
2425
use OCP\Files\AppData\IAppDataFactory;
2526
use OCP\IAppConfig;
@@ -56,6 +57,7 @@ public function __construct(
5657
protected CaIdentifierService $caIdentifierService,
5758
protected CrlMapper $crlMapper,
5859
protected LoggerInterface $logger,
60+
CrlRevocationChecker $crlRevocationChecker,
5961
) {
6062
parent::__construct(
6163
$config,
@@ -67,6 +69,7 @@ public function __construct(
6769
$urlGenerator,
6870
$caIdentifierService,
6971
$logger,
72+
$crlRevocationChecker,
7073
);
7174

7275
$this->cfsslServerHandler->configCallback(fn () => $this->getCurrentConfigPath());

0 commit comments

Comments
 (0)