Skip to content

Explain the env() notation in parameters for defaulting env vars value #13678

@Taluu

Description

@Taluu

Since I think Symfony 3.4, we can do the following to make a default value for an env var if it's not set :

parameters:
  env(SECRET): foo

It is mentionned all throughout the docs (example here, here and here), but it is never detailed what it is and what's the point of using it.

Maybe adding a section or a short explanation of what it is could be beneficial before using it as it is currently used ?

I'm afraid I lack the writing skills to make a proper explanation on that to contribute efficiently on that issue. :/

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions