4.4.51

Latest release in branch 4.4
Released 2 years ago (November 10, 2023)

Software Symfony
Branch 4.4
Status LTS
End of life
End of bug fixes November 2022
End of security fixes November 2023
First official release version 4.4.0
First official release date 6 years ago (November 21, 2019)
Supported
PHP versions
PHP ≥ 7.1.3
Release notes https://github.com/symfony/symfony/releases/tag/v4.4.51
Source code https://github.com/symfony/symfony/tree/v4.4.51
Documentation https://symfony.com/doc/current/index.html
Download https://symfony.com/download
Symfony 4.4 Releases View full list

What Is New in Symfony 4.4

Symfony 4.4 is a Long Term Support release packed with new features that bridge the gap to Symfony 5.0. It introduces new components, deprecates old patterns, and adds numerous quality-of-life improvements while maintaining full backward compatibility.

Category Key Changes
New Features New Mailer and Notifier components, improved container compilation, new expression language functions.
Improvements Better PHPDoc support in the container, enhanced translation commands, smoother Messenger integration.
Deprecations Methods and services related to the old Mailer, MimeType guesses, and some security voters are marked for removal in 5.0.
Bug Fixes Numerous fixes across the Form, Validator, Security, and Console components.

How does the new Mailer component improve my application?

The new symfony/mailer component replaces Swift Mailer, offering a more modern and integrated approach. It's built from the ground up for Symfony's HttpClient and Messenger components, enabling asynchronous sending and better debugging out of the box.

In practice, this means your emails can be handed off to a message queue instantly. The configuration is also more streamlined, with DSN strings for different transports like SMTP or third-party services.

Example Configuration

# .env
MAILER_DSN=smtp://user:[email protected]:465

What can I do with the new Notifier component?

The Notifier component is a unified system for sending alerts across various channels like Slack, SMS, and email. It's designed for application notifications, such as user alerts or system monitoring, rather than marketing emails.

You can use it to send the same notification through multiple channels simultaneously. It integrates tightly with the new Mailer and the existing Messenger component for queued delivery.

Are there improvements for dependency injection?

Yes, the service container gets smarter about PHPDoc. It can now automatically register classes as services based on type hints in your constructor arguments, reducing manual configuration.

This change makes working with auto-wiring even smoother. The container compiler also runs faster in the development environment, which speeds up page reloads during development.

What deprecations should I watch out for?

Several features are soft-deprecated to prepare for Symfony 5.0. Key areas include the old SwiftmailerBundle, certain methods in the MimeType guesser, and the security.user.provider.in_memory factory.

Running your application with the SYMFONY_DEPRECATIONS_HELPER environment variable is the best way to catch these. The deprecation messages usually point you directly to the replacement.

FAQ

Is Symfony 4.4 a good choice for a new project?
Absolutely. As an LTS release, it will receive bug fixes until 2024 and security fixes until 2026. It's stable and includes all the modern features that lead into Symfony 5 and 6.

How difficult is it to migrate from Swiftmailer to the new Mailer?
The process is straightforward. You install the new component, update your configuration to use DSNs, and change a few class names in your code. The underlying logic for building emails remains similar.

Can I use the Notifier without Messenger?
Yes, the Notifier can send notifications immediately. However, using it with Messenger is recommended for any channel that might be slow (like SMS) to prevent your web requests from blocking.

What happens if I ignore the deprecation warnings?
Your application will keep working in 4.4. However, it will break when you try to upgrade to Symfony 5.0, as the deprecated code is removed there. It's best to address them gradually.

Are there performance improvements in this release?
While not a major performance overhaul, several components see optimizations. The faster container compilation in dev mode is a noticeable quality-of-life improvement for developers.

Releases In Branch 4.4

Version Release date
4.4.51 2 years ago
(November 10, 2023)
4.4.50 3 years ago
(February 01, 2023)
4.4.49 3 years ago
(November 28, 2022)
4.4.48 3 years ago
(October 28, 2022)
4.4.47 3 years ago
(October 12, 2022)
4.4.46 3 years ago
(September 30, 2022)
4.4.45 3 years ago
(August 26, 2022)
4.4.44 3 years ago
(July 29, 2022)
4.4.43 3 years ago
(June 26, 2022)
4.4.42 3 years ago
(May 27, 2022)
4.4.41 3 years ago
(April 27, 2022)
4.4.40 4 years ago
(April 02, 2022)
4.4.39 4 years ago
(March 05, 2022)
4.4.38 4 years ago
(February 28, 2022)
4.4.37 4 years ago
(January 28, 2022)
4.4.36 4 years ago
(December 29, 2021)
4.4.35 4 years ago
(November 24, 2021)
4.4.34 4 years ago
(November 22, 2021)
4.4.33 4 years ago
(October 29, 2021)
4.4.31 4 years ago
(September 28, 2021)
4.4.32 4 years ago
(September 28, 2021)
4.4.30 4 years ago
(August 30, 2021)
4.4.29 4 years ago
(July 29, 2021)
4.4.28 4 years ago
(July 27, 2021)
4.4.27 4 years ago
(July 26, 2021)
4.4.26 4 years ago
(June 30, 2021)
4.4.25 4 years ago
(June 01, 2021)
4.4.24 4 years ago
(May 19, 2021)
4.4.23 4 years ago
(May 12, 2021)
4.4.22 4 years ago
(May 01, 2021)
4.4.21 5 years ago
(March 29, 2021)
4.4.20 5 years ago
(March 04, 2021)
4.4.19 5 years ago
(January 27, 2021)
4.4.18 5 years ago
(December 18, 2020)
4.4.17 5 years ago
(November 29, 2020)
4.4.16 5 years ago
(October 28, 2020)
4.4.15 5 years ago
(October 04, 2020)
4.4.14 5 years ago
(September 27, 2020)
4.4.13 5 years ago
(September 02, 2020)
4.4.12 5 years ago
(August 31, 2020)
4.4.11 5 years ago
(July 24, 2020)
4.4.10 5 years ago
(June 12, 2020)
4.4.9 5 years ago
(May 31, 2020)
4.4.8 5 years ago
(April 28, 2020)
4.4.7 6 years ago
(March 30, 2020)
4.4.6 6 years ago
(March 27, 2020)
4.4.5 6 years ago
(February 29, 2020)
4.4.4 6 years ago
(January 31, 2020)
4.4.3 6 years ago
(January 21, 2020)
4.4.2 6 years ago
(December 19, 2019)
4.4.1 6 years ago
(December 01, 2019)
4.4.0 6 years ago
(November 21, 2019)
4.4.0-RC1 6 years ago
(November 17, 2019)
4.4.0-BETA2 6 years ago
(November 13, 2019)
4.4.0-BETA1 6 years ago
(November 12, 2019)