From 87bdde801dd1c045f99d9869a3fd8280bbbd70e7 Mon Sep 17 00:00:00 2001 From: Brock H Caldwell Date: Fri, 8 Aug 2025 23:48:30 -0500 Subject: [PATCH] fix: updates config resolver --- src/Base/ConfigResolver.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Base/ConfigResolver.php b/src/Base/ConfigResolver.php index 520dc49..5de8c61 100644 --- a/src/Base/ConfigResolver.php +++ b/src/Base/ConfigResolver.php @@ -38,6 +38,12 @@ final class ConfigResolver #[Autowire(param: 'auth.oidc.bypass_form_login')] private ?bool $authOidcBypassFormLogin = null, + + #[Autowire(param: 'notification.transport')] + private ?string $notificationTransport = null, + + #[Autowire(param: 'notification.ntfy.dsn')] + private ?string $notificationNtfyDsn = null, ) {} public function validate(): bool @@ -54,6 +60,12 @@ final class ConfigResolver $valid = false; } + if (null !== $this->notificationTransport) { + if (null === $this->notificationNtfyDsn || "" === $this->notificationNtfyDsn) { + $this->messages[] = "Your NOTIFICATION_TRANSPORT is set to 'ntfy' but you don't have the NTFY_DSN environment variable set."; + } + } + return $valid; }