This PR was merged into the 6.2 branch.
Discussion
----------
[FrameworkBundle] Add `resolve-env` option to debug:config command
| Q | A
| ------------- | ---
| Branch? | 6.2
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | Fix#40582
| License | MIT
| Doc PR | _NA_
Add `--resolve-env` option to `debug:config` command to display actual values of environment variables in dumped configuration.
This main purpose of this command is debugging as its name suggests. In order to help the developer to debug its configuration, it is convenient to display the actual value of environment variables present in the dumped configuration, instead of placeholders.
Here is the result:
```
$ symfony console debug:config framework | grep secret
secret: '%env(APP_SECRET)%'
secrets:
vault_directory: '/home/alexandredaubois/(...)/config/secrets/%env(default:kernel.environment:APP_RUNTIME_ENV)%'
$ symfony console debug:config framework --resolve-env | grep secret
secret: 90d83502629d64dec4cd6e33c9b31267
secrets:
vault_directory: /home/alexandredaubois/(...)/config/secrets/dev
```
Commits
-------
bdc8e0224c [FrameworkBundle] Add `resolve-env` option to debug:config command
* 6.0:
Fix merge
[Mime] Throw exception when body in Email attach method is not ok
[VarDumper][VarExporter] Deal with DatePeriod->include_end_date on PHP 8.2
[Cache] Throw when "redis_sentinel" is used with a non-Predis "class" option
fix merge
Bootstrap 4 fieldset for row errors
[Form] Fix same choice loader with different choice values
[Filesystem] Safeguard (sym)link calls
Fix dumping extension config without bundle
[HttpClient] Honor "max_duration" when replacing requests with async decorators
[HttpClient] Add missing HttpOptions::setMaxDuration()
[HttpKernel] Fix missing null type in `ErrorListener::__construct()`
[HttpFoundation] [Session] Overwrite invalid session id
* 5.4:
Fix merge
[Mime] Throw exception when body in Email attach method is not ok
[VarDumper][VarExporter] Deal with DatePeriod->include_end_date on PHP 8.2
[Cache] Throw when "redis_sentinel" is used with a non-Predis "class" option
fix merge
Bootstrap 4 fieldset for row errors
[Form] Fix same choice loader with different choice values
[Filesystem] Safeguard (sym)link calls
Fix dumping extension config without bundle
[HttpClient] Honor "max_duration" when replacing requests with async decorators
[HttpClient] Add missing HttpOptions::setMaxDuration()
[HttpFoundation] [Session] Overwrite invalid session id
* 4.4:
[Mime] Throw exception when body in Email attach method is not ok
[VarDumper][VarExporter] Deal with DatePeriod->include_end_date on PHP 8.2
[Cache] Throw when "redis_sentinel" is used with a non-Predis "class" option
Bootstrap 4 fieldset for row errors
Fix dumping extension config without bundle
* 5.4:
[PropertyInfo] Support the list pseudo-type
Add completion for DebugConfig name and path arguments
Remove return types that confuse our types patching script
- added deprecation message for non-int return value in Command::execute()
- fixed all core commands to return proper int values
- added proper return type-hint to Command::execute() method in all core Commands
* 3.4: (24 commits)
Apply php-cs-fixer rule for array_key_exists()
[Security] Change FormAuthenticator if condition
handles multi-byte characters in autocomplete
speed up tests running them without debug flag
[Translations] added missing Croatian validators
Fix getItems() performance issue with RedisCluster (php-redis)
[VarDumper] Keep a ref to objects to ensure their handle cannot be reused while cloning
IntegerType: reject submitted non-integer numbers
be keen to newcomers
[HttpKernel] Fix possible infinite loop of exceptions
fixed CS
[Validator] Added missing translations for Afrikaans
do not validate non-submitted form fields in PATCH requests
Update usage example in ArrayInput doc block.
[Console] Prevent ArgvInput::getFirstArgument() from returning an option value
[Validator] Fixed duplicate UUID
fixed CS
[EventDispatcher] Fix unknown priority
Avoid mutating the Finder when building the iterator
[Validator] Add the missing translations for the Greek (el) locale
...
* 3.4:
fixed CS
fixed short array CS in comments
fixed CS in ExpressionLanguage fixtures
fixed CS in generated files
fixed CS on generated container files
fixed CS on Form PHP templates
fixed CS on YAML fixtures
fixed fixtures
switched array() to []