Skip to content

Commit 086a347

Browse files
Moving the new env() syntax upwards, to be shown as the preferred way
1 parent a7f36ae commit 086a347

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)