108 Commits

Author SHA1 Message Date
Nicolas Grekas
a4022da753 Merge branch '6.4' into 7.4
* 6.4:
  [RateLimiter] Fix retryAfter when consuming exactly all remaining tokens in FixedWindow and TokenBucket
  [RateLimiter] Fix retryAfter value on last token consume (SlidingWindow)
  [RateLimiter] Fix reservations outside the second fixed window
  [Filesystem] makePathRelative with existing files, remove ending /
  [Config][Routing] Fix exclude option being ignored for non-glob and PSR-4 resources
  [Serializer][Validator] Fix propertyPath in ConstraintViolationListNormalizer with MetadataAwareNameConverter
  [Messenger][Amqp] Don't use retry routing key when sending to failure transport
  [Messenger] Fix re-sending failed messages to a different failure transport
  [DependencyInjection] Fix #[AsTaggedItem] discovery through multi-level decoration chains
  [DependencyInjection] Fix PriorityTaggedServiceTrait not discovering #[AsTaggedItem] on decorated services
  [Mailer] Clarify the purpose of SentMessage's "message id" concept
  [TwigBridge] Fix Bootstrap 4 form error layout
  [Form] Fix merging POST params and files when collection entries have mismatched indices
  [Validator] Fix type error for non-array items when Unique::fields is set
  [HttpKernel] Fix default locale ignored when Accept-Language has no enabled-locale match
  [FrameworkBundle] Make `ConfigDebugCommand` use its container to resolve env vars
  [Console] Fix various completion edge cases
  [Messenger][AmazonSqs] Add test for default queue_name when not set in DSN path or options
2026-02-25 17:50:00 +01:00
matlec
a864079097 [FrameworkBundle] Make ConfigDebugCommand use its container to resolve env vars 2026-02-23 17:06:02 +01:00
Christian Flothmann
3c62a34372 Merge branch '7.3' into 7.4
* 7.3:
  fix test
  Restore Relay 8.5 test
  account for PHP_ZTS being a boolean value on PHP 8.4+
  [Intl] Update data to ICU 78.1
  [Notifier][Smsbox] Add tests for `Mode` enum
  [DependencyInjection] Remove unused variable
  [Console] Fix exception message when abbreviation matches multiple hidden commands
  [FrameworkBundle] Fix TypeError when traversing scalar values in debug:config
  [DependencyInjection] Fix loop corruption in CheckTypeDeclarationsPass
  [Security] Fix UserBadge validation bypass via identifier normalizer
  [DependencyInjection] Fix invalid PHP syntax for nullable TypedReference in PhpDumper
  Fix typo in comment
  [Translation][Routing] Fix typos
  [Config] Fix nullable EnumNode with BackedEnum
  [String] Fix normalization in trimPrefix/trimSuffix
2025-11-27 14:27:24 +01:00
Christian Flothmann
c455f54761 Merge branch '6.4' into 7.3
* 6.4:
  Restore Relay 8.5 test
  account for PHP_ZTS being a boolean value on PHP 8.4+
  [Intl] Update data to ICU 78.1
  [Console] Fix exception message when abbreviation matches multiple hidden commands
  [FrameworkBundle] Fix TypeError when traversing scalar values in debug:config
  [DependencyInjection] Fix loop corruption in CheckTypeDeclarationsPass
  [DependencyInjection] Fix invalid PHP syntax for nullable TypedReference in PhpDumper
  Fix typo in comment
  [Translation][Routing] Fix typos
  [String] Fix normalization in trimPrefix/trimSuffix
2025-11-26 16:55:45 +01:00
Younes ENNAJI
55a926f63b [FrameworkBundle] Fix TypeError when traversing scalar values in debug:config 2025-11-23 14:56:47 +01:00
Dariusz Ruminski
be639dea57 chore: heredoc indentation as of PHP 7.3
https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
2025-08-10 00:28:14 +02:00
Nicolas Grekas
291b51ee99 CS fixes 2025-07-10 10:14:14 +02:00
Alexandre Daubois
eab16fe6e6 [Config] Add NodeDefinition::docUrl() 2025-04-03 13:53:38 +02:00
Fabien Potencier
900b8add71 Unify how --format is handle by commands 2024-06-26 08:46:14 +02:00
Alexander M. Turek
4875a8487f Prefix all sprintf() calls 2024-06-20 17:52:34 +02:00
Nicolas Grekas
a943a584ec Minor CS fixes 2023-09-25 14:52:38 +02:00
Nicolas Grekas
e1facb5f53 More short closures 2023-07-30 22:28:31 +02:00
Yanick Witschi
17eadffa43 [FrameworkBundle] Fixed parsing new JSON output of debug:config not possible 2023-06-24 11:59:28 +02:00
Nicolas Grekas
f777350f71 Merge branch '6.2' into 6.3
* 6.2:
  [FrameworkBundle] Show non-bundle extensions in `debug:config` & `config:dump` list view & completion
2023-06-08 23:38:26 +02:00
Nicolas Grekas
e178e998f3 Merge branch '5.4' into 6.2
* 5.4:
  [FrameworkBundle] Show non-bundle extensions in `debug:config` & `config:dump` list view & completion
2023-06-08 23:38:19 +02:00
Nicolas Grekas
2aef04c785 Merge branch '6.2' into 6.3
* 6.2:
  [FrameworkBundle] Fix `debug:config` & `config:dump` in debug mode
2023-06-08 22:47:08 +02:00
Nicolas Grekas
ac7a253215 Merge branch '5.4' into 6.2
* 5.4:
  [FrameworkBundle] Fix `debug:config` & `config:dump` in debug mode
2023-06-08 22:44:26 +02:00
HypeMC
d8cb33b931 [FrameworkBundle] Show non-bundle extensions in debug:config & config:dump list view & completion 2023-06-08 21:34:49 +02:00
HypeMC
9631b45b32 [FrameworkBundle] Fix debug:config & config:dump in debug mode 2023-06-06 12:42:26 +02:00
Wouter de Jong
c26a6d52a7 Add remaining missing return types to safe methods 2023-04-24 16:22:26 +02:00
Antoine Lamirault
e614e5e566 Harmonize command formats and ensure autocompletion is same 2023-04-08 09:25:02 +02:00
Nicolas Grekas
1fdee38ac3 CS fix 2023-02-16 10:33:00 +01:00
Wouter de Jong
34bd487d2e Add void return types 2023-02-13 14:18:23 +01:00
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