Skip to content

Commit b6ccd75

Browse files
committed
minor #17552 [Config] Moving the new env() syntax upwards, to be shown as the preferred way (ThomasLandauer)
This PR was merged into the 5.4 branch. Discussion ---------- [Config] Moving the new `env()` syntax upwards, to be shown as the preferred way Commits ------- 086a347 Moving the new `env()` syntax upwards, to be shown as the preferred way
2 parents 9ecd679 + 086a347 commit b6ccd75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,9 @@ This example shows how you could configure the database connection using an env
646646
$container->extension('doctrine', [
647647
'dbal' => [
648648
// by convention the env var names are always uppercase
649-
'url' => '%env(resolve:DATABASE_URL)%',
650-
// or
651649
'url' => env('DATABASE_URL')->resolve(),
650+
// or
651+
'url' => '%env(resolve:DATABASE_URL)%',
652652
],
653653
]);
654654
};

0 commit comments

Comments
 (0)