A Week of Symfony #827 (31 October – 6 November 2022)

This week, Symfony development activity focused on polishing Symfony 6.2 features before its final release at the end of November 2022. We marked some tokens as sensitive, allowed enums as service parameters, added some methods to MIME part files and improved the IsGranted attribute.

Symfony development highlights

This week, 31 pull requests were merged (26 in code and 5 in docs) and 22 issues were closed (18 in code and 4 in docs). Excluding merges, 20 authors made 6,958 additions and 7,377 deletions. See details for code and docs.

4.4 changelog:

b6db638: [HttpFoundation] check IPv6 is valid before comparing it
9b22123: [HttpClient] do not set http_version instead of setting it to null
e1641da: fix the notification email theme for asynchronously dispatched emails
538491b: [Mailer] stream timeout not detected fgets returns false
ad0e25f: [DependencyInjection] don’t move locator tag for service subscriber
5548611: [FrameworkBundle, Lock] allow to disable lock without defining a resource
1ee474f: [HttpFoundation] compare cookie with null value as empty string in ResponseCookieValueSame

5.4 changelog:

b25499d: [Doctrine Bridge] fix search scope when performing fallback mapping driver detection
ad0e25f: [DependencyInjection] don’t move locator tag for service subscriber

6.1 changelog:

b2a35c7: [HttpKernel] fix deprecation for DateTimeValueResolver with null on non-nullable argument

6.2 changelog:

652dc7d: [Mime] rename Part/BodyFile to Part/File
fa3d2d5: [Notifier] mark tokens with SensitiveParameter attribute
1f83ce7: [DependencyInjection] allow enum as service parameter in PHP config files
e4d59bc: [Mime] add File::getSize() and getFilename()
97e08c3: [Security] make request always available to IsGranted attribute
ff56fe8: [FrameworkBundle] allow UUID v7 in uid configuration
4d4c411: [Security] remove special case for IsGranted() subject

Newest issues and pull requests

[PropertyAccess] Unified path notation for arrays and objects
Expose parameterized route in the request
[Validator] Unique constraint can’t be applied to collection of object
Yaml: dump numeric keys as strings instead of numbers

SymfonyCasts Updates

SymfonyCasts is the official way to learn Symfony.
Select a track for a guided path through 100+ video tutorial courses about
Symfony, PHP and JavaScript.

These were some of the most relevant SymfonyCasts updates
of the week:

(Video) Design Patterns for Fun and Proficiency, Chapter 3: Strategy Part 2: Benefits & In the Wild
(Video) Design Patterns for Fun and Proficiency, Chapter 4: Builder Pattern
(Video) Design Patterns for Fun and Proficiency, Chapter 5: Builder Improvements
(Video) PHPUnit: Unit Testing with a Bite!, Chapter 13: Filtering Out Hungry Dino’s
(Video) PHPUnit: Unit Testing with a Bite!, Chapter 14: Testing Exceptional Exceptions
(Video) PHPUnit: Unit Testing with a Bite!, Chapter 15: Mocking Symfony’s HTTP Client

They talked about us

Why you should migrate your Symfony configs to PHP
From annotations to attributes in Doctrine
Bloquer la connexion simultanée à un même compte ? C’est possible !
Maîtrisez votre app avec le pattern decorator

Call to Action

Follow Symfony on Twitter and retweet this article.
Subscribe to the Symfony blog RSS and never miss a Symfony story again.

Sponsor the Symfony project.

Symfony Blog

Read More

Latest News

PHP-Releases

PHP 8.3.4 released!

PHP 8.2.17 released!

PHP 8.1.27 released!

Generated by Feedzy