Commit Graph

85 Commits

Author SHA1 Message Date
Antoine Lamirault 8d18644f21 [FrameworkBundle] Improve UX ConfigDebugCommand has not yaml component 2022-12-18 15:20:30 +01:00
Grégoire Pineau fb7ade8fab [CS] Remove @inheritdoc PHPDoc 2022-08-25 17:27:04 +02:00
Fabien Potencier 82a84cf0be feature #46821 [FrameworkBundle] Add resolve-env option to debug:config command (alexandre-daubois)
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
2022-07-21 16:18:31 +02:00
Fabien Potencier 53b394e65f Merge branch '6.0' into 6.1
* 6.0:
  Fix CS
  Fix CS
2022-07-20 15:46:29 +02:00
Fabien Potencier 408f59520b Merge branch '5.4' into 6.0
* 5.4:
  Fix CS
  Fix CS
2022-07-20 15:45:53 +02:00
Fabien Potencier 425088abb6 Merge branch '4.4' into 5.4
* 4.4:
  Fix CS
2022-07-20 13:34:24 +02:00
Fabien Potencier a04950d5c7 Fix CS 2022-07-20 11:59:04 +02:00
Alexandre Daubois 083e165e85 [FrameworkBundle] Add resolve-env option to debug:config command 2022-07-14 11:03:44 +02:00
Nicolas Grekas 3daf50373b Merge branch '6.0' into 6.1
* 6.0:
  Fix merge
  [FrameworkBundle] fix tests
  [FrameworkBundle] fix wiring of annotations.cached_reader
  [SecurityBundle] Remove dead `class_exists` checks
  Fix BC break
  [DependencyInjection] Ignore unused bindings defined by attribute
  [ErrorHandler] update tentative types
2022-05-23 12:32:57 +02:00
Nicolas Grekas 46b93855fc Merge branch '5.4' into 6.0
* 5.4:
  Fix merge
  [FrameworkBundle] fix tests
  [FrameworkBundle] fix wiring of annotations.cached_reader
  [SecurityBundle] Remove dead `class_exists` checks
  Fix BC break
  [DependencyInjection] Ignore unused bindings defined by attribute
  [ErrorHandler] update tentative types
2022-05-23 12:32:42 +02:00
Nicolas Grekas adaa2a15ed Merge branch '4.4' into 5.4
* 4.4:
  [FrameworkBundle] fix tests
  [FrameworkBundle] fix wiring of annotations.cached_reader
  Fix BC break
2022-05-23 12:27:45 +02:00
Yonel Ceruto e06d97dfc4 Fix BC break 2022-05-21 15:38:22 -04:00
Nicolas Grekas 264de87e02 Merge branch '6.0' into 6.1
* 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
2022-05-21 15:34:40 +02:00
Nicolas Grekas 30b6044e9a Merge branch '5.4' into 6.0
* 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
2022-05-21 15:33:31 +02:00
Nicolas Grekas bc2bdea48d Fix merge 2022-05-21 15:19:01 +02:00
Nicolas Grekas 0f68f04466 Merge branch '4.4' into 5.4
* 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
2022-05-21 12:24:18 +02:00
Yonel Ceruto 5142c8a611 Fix dumping extension config without bundle 2022-05-19 17:43:28 -04:00
Thomas Calvet 2f62d5af2f Leverage non-capturing catches 2022-04-01 09:15:35 +02:00
Nicolas Grekas 2f3f5384cd Bump minimum version of PHP to 8.1 2022-02-25 12:15:52 +01:00
Alexander M. Turek 63aa0c5603 Merge branch '5.4' into 6.0
* 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
2021-11-04 19:05:01 +01:00
Adrien Jourdier 4bb31346d3 Add completion for DebugConfig name and path arguments 2021-11-04 18:55:50 +01:00
Nicolas Grekas 54788c67a5 Use #[AsCommand] to describe commands 2021-09-30 17:28:07 +02:00
Nicolas Grekas 2428f8ee75 Merge branch '5.4' into 6.0
* 5.4:
  Fix skip condition for INTL
  [Messenger] Fix `ErrorDetailsStamp` denormalization
  [Translation] Extract translatable content on twig set
  Simplify code
  [FrameworkBundle] Add BrowserKitAssertionsTrait::assertThatForBrowser
  Fix composer.json versions
  [Ldap] Fixing the behaviour of getting LDAP Attributes
  Fix composer.json versions
  Remove redundant license info
  [HttpFoundation] Fix isNotModified determination logic
  Fix Url Validator false positives
  [Translation] Reverse fallback locales
  [Console] Backport minor refactorings
  [FrameworkBundle] Fall back to default configuration in debug:config and consistently resolve parameter values
  notifier smsapi - fixed checking whether message is sent
  allow null for framework.translator.default_path
  improve failure messages of the CrawlerSelectorTextContains constraint
2021-08-26 10:28:23 +02:00
Nicolas Grekas 8865bac4fe Merge branch '4.4' into 5.3
* 4.4:
  Fix composer.json versions
  Fix composer.json versions
  Remove redundant license info
  [HttpFoundation] Fix isNotModified determination logic
  Fix Url Validator false positives
  [Translation] Reverse fallback locales
  [FrameworkBundle] Fall back to default configuration in debug:config and consistently resolve parameter values
  allow null for framework.translator.default_path
  improve failure messages of the CrawlerSelectorTextContains constraint
2021-08-26 10:22:53 +02:00
Martin Herndl 59fdd2dfac [FrameworkBundle] Fall back to default configuration in debug:config and consistently resolve parameter values 2021-08-25 11:50:26 +02:00
Nicolas Grekas 4ee344add0 Add return types, round 1 2021-07-13 11:08:42 +02:00
Fabien Potencier 3f8b570669 Merge branch '5.2' into 5.x
* 5.2:
  Fix #36973: Command description consistency
  Render email once
2021-03-06 09:05:19 +01:00
Fabien Potencier a26f088761 Merge branch '4.4' into 5.2
* 4.4:
  Fix #36973: Command description consistency
  Render email once
2021-03-06 08:59:01 +01:00
Dane Powell 1d7c9a5590 Fix #36973: Command description consistency 2021-03-05 09:58:50 -08:00
Nicolas Grekas a2ab2c0854 [Console] enable describing commands in ways that make the list command lazy 2021-01-20 12:45:16 +01:00
Guillaume Pédelagrabe b927de9b4d [FrameworkBundle] Dump kernel extension configuration 2020-03-31 20:59:28 +02:00
Fabien Potencier f5e4847511 Merge branch '3.4' into 4.4
* 3.4:
  Add missing dots at the end of exception messages
2020-03-15 11:05:03 +01:00
Fabien Potencier 7224570d0c Add missing dots at the end of exception messages 2020-03-15 10:38:08 +01:00
Jan Schädlich 38fc5d8a95 [Console] Command::execute() should always return int - deprecate returning null
- 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
2019-10-02 16:44:58 +02:00
Nicolas Grekas d6051b94b4 Merge branch '3.4' into 4.3
* 3.4:
  [FrameworkBundle] Fix wrong returned status code in ConfigDebugCommand
  [AnnotationCacheWarmer] add RedirectController to annotation cache
2019-10-02 16:38:26 +02:00
Jan Schädlich e029ca9324 [FrameworkBundle] Fix wrong returned status code in ConfigDebugCommand 2019-10-02 12:47:49 +02:00
Roland Franssen 6c74c52978 Debug finalized config in debug:config 2019-03-22 20:30:22 +01:00
Nicolas Grekas 37c194ad2c Merge branch '3.4' into 4.2
* 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
  ...
2019-02-23 16:17:42 +01:00
Nicolas Grekas 4dcd92870a Apply php-cs-fixer rule for array_key_exists() 2019-02-23 16:06:07 +01:00
Fabien Potencier 445fdbb53f Merge branch '3.4' into 4.1
* 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 []
2019-01-16 19:21:11 +01:00
Fabien Potencier ce7ef306e9 switched array() to [] 2019-01-16 10:39:14 +01:00
Nicolas Grekas f262579e4a Merge branch '3.4' into 4.0
* 3.4:
  Alpha-ordering for "use" statements
2018-07-26 11:08:35 +02:00
Nicolas Grekas a281fdb702 Merge branch '2.8' into 3.4
* 2.8:
  Alpha-ordering for "use" statements
2018-07-26 11:06:28 +02:00
Fabien Potencier 8637e5ae14 removed version in @final @internal for version < 4.0 2018-02-19 13:18:43 +01:00
Nicolas Grekas 18bd49a614 Remove some visual debt by adding type hints on final methods/classes 2017-10-24 16:36:35 +02:00
Nicolas Grekas e67bd5317c [Console] Add protected static $defaultName to set the default name of a Command 2017-08-24 16:43:56 +02:00
Roland Franssen fcda14c5ee [FrameworkBundle] Commands as a service 2017-08-06 12:29:12 +02:00
Robin Chalas 6430d552d7 [FrameworkBundle] Use getErrorStyle() when relevant 2017-01-12 21:28:11 +01:00
Robin Chalas 629ff1b940 [FrameworkBundle] Make use of stderr for non reliable output 2017-01-12 21:28:11 +01:00
Robin Chalas 86cadb5063 Fix misresolved parameters in debug:config on 3.2 2016-12-13 20:36:21 +01:00