chore: Make RapidMail Credentials non required.

This commit is contained in:
2025-10-31 23:34:36 +01:00
parent 6c7f27dae4
commit 9e39a7b14e

View File

@@ -19,8 +19,8 @@ final readonly class RapidMailConfig
public static function fromEnvironment(Environment $env): self
{
return new self(
username: $env->getRequired(EnvKey::RAPIDMAIL_USERNAME),
password: $env->getRequired(EnvKey::RAPIDMAIL_PASSWORD),
username: $env->getString(EnvKey::RAPIDMAIL_USERNAME),
password: $env->getString(EnvKey::RAPIDMAIL_PASSWORD),
testMode: $env->getBool(EnvKey::RAPIDMAIL_TEST_MODE, true),
);
}