Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 309bd58

Browse files
committed
Document Default env processor with null fallback
1 parent 0c1aa7d commit 309bd58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configuration/external_parameters.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,8 @@ Symfony provides the following env var processors:
533533
$container->setParameter('private_key', '%env(default:raw_key:file:PRIVATE_KEY)%');
534534
$container->setParameter('raw_key', '%env(PRIVATE_KEY)%');
535535
536+
When the fallback parameter is ommited (ie. ``env(default::API_KEY)``), the value retrieved is ``null``.
537+
536538
.. versionadded:: 4.3
537539

538540
The ``default`` processor was introduced in Symfony 4.3.

0 commit comments

Comments
 (0)