A Week of Symfony #898 (11-17 March 2024)

This week, Symfony continued adding support for the upcoming PHP 8.4 version in all maintained Symfony branches. Meanwhile, the next Symfony 7.1 release improved performance when creating lazy objects, added support for workflows that need to store many tokens in the marking and introduced a new AutowireMethodOf attribute to autowire a method of a service as a callable.

Symfony development highlights

This week, 72 pull requests were merged (48 in code and 24 in docs) and 36 issues were closed (29 in code and 7 in docs). Excluding merges, 30 authors made 29,767 additions and 54,634 deletions. See details for code and docs.

5.4 changelog:

c6506c4: [ErrorHandler] fix exit code when an exception occurs and the exception handler has been unregistered
0a7825b: [HttpClient] lazily initialize CurlClientState
864df6f: [Mailer] fix sendmail transport not handling failure
6b550a1: [Validator] allow BIC first four characters to be digits
9d362b1: [VarDumper] fix test suite with PHP 8.4
c44cc73: [Lock] compatiblity with Redis cluster 7
6fadff7: [Lock] check the correct SQLSTATE error code for MySQL
3fbca7b: [Security] correctly initialize the voter property
e05d922: [Filesystem] fix str_contains deprecation
cb3ec06: [FrameworkBundle] fix mailer config with XML
07a6ffe: [Cache, Lock] identify missing table in pgsql correctly and address failing integration tests
9fe7efc: Update Greek translation
43d643b: Update Arabic translation

6.4 changelog:

37e436f: [HttpKernel] fix creating ReflectionMethod with only one argument
ad56682: [Messenger] trigger retry logic when message is a redelivery
dc4f3fb: [PropertyAccess] fix checking for missing properties
e17b65c: [Validator] add missing invalid extension error entry
bf1ffd3: [DependencyInjection] fix XmlDumper when a tag contains also a ’name‘ property
4bd3b29: [Mailer] check that tags are present in Brevo payload before calling setTags

7.0 changelog:

b0b0b47: [VarDumper] prevent error in value to Typed property must not be accessed before initialization

7.1 changelog:

62d272c: [FrameworkBundle, Workflow] attach the workflow’s configuration to the workflow tag
a0721fd: [VarExporter] improve performance when creating lazy objects
20d5453: [HttpFoundation] improve the return type of ParameterBag::getEnum
e49f84b: [PhpUnitBridge] enhance CoverageListenerTests
965283a: [Console] add ArgvInput::getRawTokens()
83872ca: [Workflow] add support for workflows that need to store many tokens in the marking
10bc796: [DependencyInjection] add #[AutowireMethodOf] attribute to autowire a method of a service as a callable

Newest issues and pull requests

[RFC][Messenger] Remove ResetInterface from InMemory transport
Extend #[When] to tell under which environment the attributes will be applied
[AssetMapper] Support SRI (integrity hashes)

Symfony CLI

Symfony CLI is a must-have tool when developing
Symfony applications on your local machine. It includes the
Symfony Local Server,
the best way to run local Symfony applications. This week Symfony CLI released
its new 5.8.12
version with the following changes:

Updated the PHP 7.2.x versions to the (current) PHP 8.2.x in de local:php:list text output (@cafferata)
Fix chunked requests are not supported (@tucksaun)
Add alias for server:ls (@lyrixx)

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.

This week, SymfonyCasts published the following updates:

(Video) Cosmic Coding with Symfony 7: Services: The Backbone of Everything

They talked about us

Symfony Station Communiqué – 15 March 2024
How to integrate Component Architecture into Symfony?
Set up JWT authentication with Symfony using the LexikJWTAuthenticationBundle
Symfony User Group Zurich Meetup Recap
Mastering the Installation of Symfony Framework on Rocky Linux 9

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.6 released!

PHP 8.2.18 released!

Generated by Feedzy