Skip to content

Commit ba8d557

Browse files
committed
Minor fixes
1 parent c1bcf07 commit ba8d557

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

configuration/external_parameters.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ Symfony provides the following env var processors:
457457
``file`` processor, as it'll remove newlines at the end of a file.
458458

459459
.. versionadded:: 4.3
460+
460461
The ``trim`` processor was introduced in Symfony 4.3.
461462

462463
``env(key:FOO:BAR)``
@@ -498,17 +499,18 @@ Symfony provides the following env var processors:
498499
$container->setParameter('database_password', '%env(key:database_password:json:file:SECRETS_FILE)%');
499500
500501
``env(default:fallback_param:BAR)``
501-
Retrieves the value of the parameter ``fallback_param`` when the of the ``BAR`` env var is not available:
502+
Retrieves the value of the parameter ``fallback_param`` when the ``BAR`` env
503+
var is not available:
502504

503505
.. configuration-block::
504506

505507
.. code-block:: yaml
506508
507509
# config/services.yaml
508510
parameters:
511+
# if PRIVATE_KEY is not a valid file path, the content of raw_key is returned
509512
private_key: '%env(default:raw_key:file:PRIVATE_KEY)%'
510513
raw_key: '%env(PRIVATE_KEY)%'
511-
# if PRIVATE_KEY is not a valid file path, the content of raw_key is returned.
512514
513515
.. code-block:: xml
514516
@@ -523,6 +525,7 @@ Symfony provides the following env var processors:
523525
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
524526
525527
<parameters>
528+
<!-- if PRIVATE_KEY is not a valid file path, the content of raw_key is returned -->
526529
<parameter key="private_key">%env(default:raw_key:file:PRIVATE_KEY)%</parameter>
527530
<parameter key="raw_key">%env(PRIVATE_KEY)%</parameter>
528531
</parameters>
@@ -531,10 +534,13 @@ Symfony provides the following env var processors:
531534
.. code-block:: php
532535
533536
// config/services.php
537+
538+
// if PRIVATE_KEY is not a valid file path, the content of raw_key is returned
534539
$container->setParameter('private_key', '%env(default:raw_key:file:PRIVATE_KEY)%');
535540
$container->setParameter('raw_key', '%env(PRIVATE_KEY)%');
536541
537542
.. versionadded:: 4.3
543+
538544
The ``default`` processor was introduced in Symfony 4.3.
539545

540546
It is also possible to combine any number of processors:

0 commit comments

Comments
 (0)