Skip to content

Commit

Permalink
refactor: Changed bootstrap.php to allow .env-set environment var…
Browse files Browse the repository at this point in the history
…iables override existing injected environment variables ([#82](craftcms/craft#82))
  • Loading branch information
Andrew Welch committed Apr 15, 2022
1 parent 08be92b commit c0166a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// Load dotenv?
if (class_exists('Dotenv\Dotenv')) {
Dotenv\Dotenv::createUnsafeImmutable(CRAFT_BASE_PATH)->safeLoad();
Dotenv\Dotenv::createUnsafeMutable(CRAFT_BASE_PATH)->safeLoad();
}

// Define additional PHP constants
Expand Down

0 comments on commit c0166a7

Please sign in to comment.