* 7.4:
[Translation] Make the extractor alias optional
[Cache] Fix accepting named closures as early-expiration callbacks
[Mime] Update mime types
[HttpKernel] Conflict with symfony/flex < 2.10
[Yaml] Align unquoted multiline scalar parsing with spec for comments
work around limitation in JsonResponse when the data is null
do not use recipient phone numbers as sender e-mail addresses
[Dotenv] DotenvDumpCommand cannot be internal
* 7.0: (39 commits)
fix merge
add missing return type-hints
fix merge
explicitly mark nullable parameters as nullable
fix low deps tests
[HttpKernel] Fix datacollector caster for reference object property
[Serializer] Fixing PHP warning in the ObjectNormalizer with MaxDepth enabled
bug #51578 [Cache] always select database for persistent redis connections
[Security] Validate that CSRF token in form login is string similar to username/password
[Serializer] Use explicit nullable type
[validator] validated Dutch translation
Improve dutch translations
initialize the current time with midnight before modifying the date
[Translation] Skip state=needs-translation entries only when source == target
[HttpKernel] Ensure controllers are not lazy
[Validator] Fill in trans-unit id 113: This URL does not contain a TLD.
[Validator] added missing Polish translation for unit 113
[Validator] add missing lv translation
fix tests
[HttpClient] Let curl handle transfer encoding
...
* 6.4: (23 commits)
fix merge
add missing return type-hints
fix merge
explicitly mark nullable parameters as nullable
fix low deps tests
[HttpKernel] Fix datacollector caster for reference object property
[Serializer] Fixing PHP warning in the ObjectNormalizer with MaxDepth enabled
bug #51578 [Cache] always select database for persistent redis connections
[Security] Validate that CSRF token in form login is string similar to username/password
[Serializer] Use explicit nullable type
[validator] validated Dutch translation
Improve dutch translations
[Translation] Skip state=needs-translation entries only when source == target
[HttpKernel] Ensure controllers are not lazy
[Validator] Fill in trans-unit id 113: This URL does not contain a TLD.
[Validator] added missing Polish translation for unit 113
[Validator] add missing lv translation
[HttpClient] Let curl handle transfer encoding
[Messenger] Make Doctrine connection ignore unrelated tables on setup
[HttpFoundation] Set content-type header in RedirectResponse
...
* 5.4:
explicitly mark nullable parameters as nullable
fix low deps tests
[HttpKernel] Fix datacollector caster for reference object property
bug #51578 [Cache] always select database for persistent redis connections
[Security] Validate that CSRF token in form login is string similar to username/password
[validator] validated Dutch translation
Improve dutch translations
[Translation] Skip state=needs-translation entries only when source == target
[HttpKernel] Ensure controllers are not lazy
[Validator] Fill in trans-unit id 113: This URL does not contain a TLD.
[Validator] added missing Polish translation for unit 113
[Validator] add missing lv translation
[HttpClient] Let curl handle transfer encoding
[Messenger] Make Doctrine connection ignore unrelated tables on setup
[HttpFoundation] Set content-type header in RedirectResponse
add translations for the requireTld constraint option message
[Serializer] Fix unexpected allowed attributes
[FrameworkBundle] Fix registration of the bundle path to translation
* 7.0:
[TwigBridge] foundation 5 layout: use form_label_content block for checkbox and radio labels
[TwigBridge] Fix compat with Twig v3.9
[Cache] Sync the Redis proxies with upstream
[Doctrine Messenger] Fix support for pgsql + pgbouncer.
[Mailer] Simplify fix
Do not produce notice/warning when consuming from multiple transports and explicitly listed queues
[FrameworkBundle] Check if the _route attribute exists on the request
[Scheduler] fix documentation link
[PropertyAccess] Fixes getValue() on an unitialized object property on a lazy ghost
[HttpClient] Make retry strategy work again
AssetMapper: Remove 'auto-generated' info
[Mailer] Fix signed emails breaking the profiler
[Mailer] [Mailgun] Fix expecting payload without tags or user variables
[Validator] Update Spanish (es) translations
Fix fetching data in `W3CReferenceTest` on AppVeyor
Fix SQS visibility_timeout type
* 6.4:
[TwigBridge] foundation 5 layout: use form_label_content block for checkbox and radio labels
[TwigBridge] Fix compat with Twig v3.9
[Cache] Sync the Redis proxies with upstream
[Doctrine Messenger] Fix support for pgsql + pgbouncer.
[Mailer] Simplify fix
Do not produce notice/warning when consuming from multiple transports and explicitly listed queues
[FrameworkBundle] Check if the _route attribute exists on the request
[Scheduler] fix documentation link
[PropertyAccess] Fixes getValue() on an unitialized object property on a lazy ghost
[HttpClient] Make retry strategy work again
AssetMapper: Remove 'auto-generated' info
[Mailer] Fix signed emails breaking the profiler
[Mailer] [Mailgun] Fix expecting payload without tags or user variables
[Validator] Update Spanish (es) translations
Fix fetching data in `W3CReferenceTest` on AppVeyor
Fix SQS visibility_timeout type
[VarDumper] Fix serialization of stubs with null or uninitialized values
* 7.0:
Skip Twig v3.9-dev for now
[Validator] Update Dutch (nl) translation
Update Albanian translations
[Validator] Update translation
[FrameworkBundle] Prevent silenced warning by checking if /proc/mount exists
[VarDumper][PhpUnitBridge] Fix color detection
prevent throwing NOT_FOUND error when tube is empty
[Validator] Update missing validator translation for Swedish
[FrameworkBundle] Fix eager-loading of env vars in ConfigBuilderCacheWarmer
[Messenger] Fix failing Redis test
[Validator] Update Italian (it) translations
[Validator] Missing translations for Hungarian (hu) #53769
revert to native PHP union types
[Validator] Missing translations for Russian (ru) #53775
fix syntax errors on PHP 7
* 6.4:
Skip Twig v3.9-dev for now
[Validator] Update Dutch (nl) translation
Update Albanian translations
[Validator] Update translation
[FrameworkBundle] Prevent silenced warning by checking if /proc/mount exists
[VarDumper][PhpUnitBridge] Fix color detection
prevent throwing NOT_FOUND error when tube is empty
[Validator] Update missing validator translation for Swedish
[FrameworkBundle] Fix eager-loading of env vars in ConfigBuilderCacheWarmer
[Messenger] Fix failing Redis test
[Validator] Update Italian (it) translations
[Validator] Missing translations for Hungarian (hu) #53769
revert to native PHP union types
[Validator] Missing translations for Russian (ru) #53775
fix syntax errors on PHP 7
* 5.4:
Skip Twig v3.9-dev for now
[Validator] Update Dutch (nl) translation
Update Albanian translations
[Validator] Update translation
[FrameworkBundle] Prevent silenced warning by checking if /proc/mount exists
[VarDumper][PhpUnitBridge] Fix color detection
prevent throwing NOT_FOUND error when tube is empty
[Validator] Update missing validator translation for Swedish
[FrameworkBundle] Fix eager-loading of env vars in ConfigBuilderCacheWarmer
[Messenger] Fix failing Redis test
[Validator] Update Italian (it) translations
[Validator] Missing translations for Hungarian (hu) #53769
* 6.4: (43 commits)
[AssetMapper] Fix entrypoint scripts are not preloaded
Fix typo in method resolvePackages
Make FormPerformanceTestCase compatible with PHPUnit 10
Avoid calling getInvocationCount()
[AssetMapper] Always downloading vendor files
[Security] Fix resetting traceable listeners
[HttpClient] Fix type error with http_version 1.1
[DependencyInjection] Add tests for `AutowireLocator`/`AutowireIterator`
[DependencyInjection] Add `#[AutowireIterator]` attribute and improve `#[AutowireLocator]`
Update documentation link
Fix typo that causes unit test to fail
Fix CS
[AssetMapper] Add audit command
[Mailer] Use idn encoded address otherwise Brevo throws an error
[Messenger] Resend failed retries back to failure transport
[FrameworkBundle] Fix call to invalid method in NotificationAssertionsTrait
[Validator] Add missing italian translations
[Notifier] Fix failing testcase
Fix order array sum normalizedData and nestedData
Add test for 0 and '0' in PeriodicalTrigger Fix '0' case error and remove duplicate code
...
This PR was merged into the 6.4 branch.
Discussion
----------
[FrameworkBundle][Validator] Deprecate annotation occurrences
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | no
| New feature? | no
| Deprecations? | yes
| Tickets | Part of https://github.com/symfony/symfony/issues/51381
| License | MIT
| Doc PR | -
* Deprecate `framework.validation.enable_annotations` in favor of `framework.validation.enable_attributes`
* Deprecate `framework.serializer.enable_annotations` in favor of use `framework.serializer.enable_attributes`
* Deprecate `ValidatorBuilder::enableAnnotationMapping()` in favor of `ValidatorBuilder::enableAttributeMapping()`
* Deprecate `ValidatorBuilder::disableAnnotationMapping()` in favor of `ValidatorBuilder::disableAttributeMapping()`
* Deprecate `AnnotationLoader` in favor of `AttributeLoader`
Commits
-------
2e1e805f89 [FrameworkBundle][Validator] Deprecate annotation occurrences
This PR was squashed before being merged into the 6.4 branch.
Discussion
----------
[DependencyInjection] add `#[AutowireLocator]` attribute
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | n/a
| License | MIT
| Doc PR | todo
The `AutowireLocator` attribute allows configuring service locators inline:
```php
use Symfony\Component\DependencyInjection\Attribute\AutowireLocator;
public function someAction(
#[AutowireLocator(RouterInterface::class, SluggerInterface::class)]
ContainerInterface $container,
): Response {
$container->get(RouterInterface::class);
$container->get(SluggerInterface::class);
}
```
You can customize the key and have optional services:
```php
use Symfony\Component\DependencyInjection\Attribute\AutowireLocator;
public function someAction(
#[AutowireLocator(
router: RouterInterface::class,
slugger: '?'.SluggerInterface::class,
)]
ContainerInterface $container,
): Response {
$container->get('router');
if ($container->has('slugger')) {
$container->get('slugger');
}
}
```
Commits
-------
5fa830d82b [DependencyInjection] add `#[AutowireLocator]` attribute
* 6.3:
[Validator] Add annotation in Constraint
[VarExporter] Remove unused test files
[FrameworkBundle] Remove unused test file
[DependencyInjection] Remove unused test file
[HttpKernel] Fix missing Request in RequestStack for StreamedResponse
Psalm: Ignore UnusedClass errors
fix(console): avoid multiple new line when message already ends with a new line
This PR was merged into the 6.3 branch.
Discussion
----------
[HttpKernel] Fix missing Request in RequestStack for StreamedResponse
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#46743
| License | MIT
| Doc PR | -
Similar to #51139 by `@DaDeather`, see discussion there.
Commits
-------
ca1c40e66d [HttpKernel] Fix missing Request in RequestStack for StreamedResponse