Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/LazySecretsLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ final class LazySecretsLoader
{
public static function loadSecretEnvironmentVariables(): void
{

if (class_exists(Secrets::class)) {
Secrets::loadSecretEnvironmentVariables();
}

if (! self::areThereSecretsToLoad()) {
return;
}
Expand All @@ -27,7 +32,6 @@ public static function loadSecretEnvironmentVariables(): void
throw new Exception('The "bref/secrets-loader" package is required to load SSM parameters via the "bref-ssm:xxx" syntax in environment variables. Please add it to your "require" section in composer.json.');
}

Secrets::loadSecretEnvironmentVariables();
}

/**
Expand Down