Skip to content

Commit 60bad2e

Browse files
committed
minor #17901 [Config] Update environment processor page (redheness)
This PR was submitted for the 6.2 branch but it was merged into the 5.4 branch instead. Discussion ---------- [Config] Update environment processor page Replace file entries from ../* to %kernel.project_dir%/* to make it work in both console and in controllers. See https://stackoverflow.com/questions/75409892/symfony-file-environment-variable-processor-not-working-in-console-command?noredirect=1#comment133062312_75409892 Commits ------- efc1678 Update environment processor page
2 parents 225cae7 + efc1678 commit 60bad2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configuration/env_var_processors.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ Symfony provides the following env var processors:
399399
400400
# config/packages/framework.yaml
401401
parameters:
402-
env(AUTH_FILE): '../config/auth.json'
402+
env(AUTH_FILE): '%kernel.project_dir%/config/auth.json'
403403
google:
404404
auth: '%env(file:AUTH_FILE)%'
405405
@@ -440,7 +440,7 @@ Symfony provides the following env var processors:
440440
441441
# config/packages/framework.yaml
442442
parameters:
443-
env(PHP_FILE): '../config/.runtime-evaluated.php'
443+
env(PHP_FILE): '%kernel.project_dir%/config/.runtime-evaluated.php'
444444
app:
445445
auth: '%env(require:PHP_FILE)%'
446446
@@ -482,7 +482,7 @@ Symfony provides the following env var processors:
482482
483483
# config/packages/framework.yaml
484484
parameters:
485-
env(AUTH_FILE): '../config/auth.json'
485+
env(AUTH_FILE): '%kernel.project_dir%/config/auth.json'
486486
google:
487487
auth: '%env(trim:file:AUTH_FILE)%'
488488

0 commit comments

Comments
 (0)