Symfony 6.2 curated new features

Symfony 6.2.0 has been released. As for any other Symfony release, our backward compatibility promise applies and this means that you should be able to upgrade easily to 6.2 without changing anything in your code.

During the last couple of months, we've blogged about the great 6.2 new features. I highly recommend you to read these articles about Symfony 6.2 as they contain the major changes for this new version:

  • Revisiting Lazy-Loading Proxies in PHP: In Symfony 6.2, the VarExporter component will ship two new traits to help implement lazy-loading objects.
  • Built-in Cache, Security, Template and Doctrine Attributes: In Symfony 6.2, the attributes to configure cache, security, templates and Doctrine are built-in, so you no longer need to install SensioFrameworkExtraBundle.
  • Better Emoji Support 🎉: In Symfony 6.2, emojis can be transliterated into their descriptions, turned into Slack/GitHub short codes and even used as part of string slugs.
  • Access Token Authenticator: Symfony 6.2 includes a new access token authenticator which simplifies the handling of access or bearer tokens such as JWT.
  • Clock Component: Symfony 6.2 will introduce a new Clock component to improve the testability of your time-sensitive code.
  • Finder Improvements: In Symfony 6.2, the Finder components adds new methods to sort by file extension, size and case-insensitive name.
  • PSR-4 Route Loader: Symfony 6.2 includes a new PSR-4 route loader which improves the finding of route attributes defined in PHP classes.
  • Conditional Constraints: Symfony 6.2 introduces a new constraint to define conditional validations that are only applied when a given condition is matched.
  • Better PHP Translation Extractor: Symfony 6.2 includes a new AST-based translation extractor to find translatable contents in PHP files.
  • Notifier and Mailer Integrations: Symfony 6.2 adds integrations with Infobip, Contact Everyone (Orange Business), SMSFactor, Zendesk and Chatwork in mailer and notifier components.
  • Improved File Validator: In Symfony 6.2, the File constraint allows to validate both file extensions and media types (MIME types) in a much simpler way.
  • Better Debugging Commands: Symfony 6.2 adds new debugging commands for mailers and message queues and improves commands to debug environment variables.
  • Improved Enum Support: Symfony 6.2 adds PHP Enum support in service parameters, YAML files and environment variable processors.
  • New Uid Features: Symfony 6.2 adds support for UUID v7 and v8 formats, UID hexadecimal conversion, UID date/time value extraction and adds utilities to get the maximum UUID and ULID values.
  • DX Improvements: Symfony 6.2 DX improvements add a simpler way to get the current route in templates, hide sensitive information, improve PHP config builders and allow to pass form objects directly from controllers.
  • More Extensible Mailer: In Symfony 6.2, the Mailer component is more extensible thanks to new events, dynamic bus/transport selection and a simpler addition of email parts.
  • Security Improvements (Part 1): In Symfony 6.2, logging in users programmatically is easier, each firewall can use multiple user checkers, the impersonating target URL is customizable and login links can override the global link lifetime.
  • Security Improvements (Part 2): Symfony 6.2 simplifies programmatic user logout, adds new hashing options to password fields, eases logout CSRF protection and makes it easier to get the firewall configuration.
  • Console improvements: In Symfony 6.2, Console improves DX, allows resuming progress bars, improves color support, adds autocompletion for Zsh shells and allows to set the height of sections.
  • Profiler Redesign: Symfony 6.2 redesigns the profiler and the web debug toolbar to give them a modern look.
            <hr style="margin-bottom: 5px" />
            <div style="font-size: 90%">
                <a href="https://symfony.com/sponsor">Sponsor</a> the Symfony project.
            </div>

https://symfony.com/blog/symfony-6-2-curated-new-features?utm_source=Symfony%20Blog%20Feed&utm_medium=feed

Établi 2y | 30 nov. 2022 à 19:20:13


Connectez-vous pour ajouter un commentaire

Autres messages de ce groupe

SymfonyLive Berlin 2025: PHP Extensions: still alive and full of hidden powers

SymfonyLive Berlin 2025, conference held in English, will take place from April 1 to 4! The schedule is being revealed gradually. More details are available here.

We’re thrilled to announce

7 févr. 2025 à 11:30:03 | Symfony
Nicolas Grekas returns to Montreal on February 25

Get ready, Montreal! The Full Stack Gurus meetup is back in 2025, and we can't wait to reconnect with the Symfony and PHP community. Mark your calendar for Tuesday, February 25th at 5:00 PM— t

6 févr. 2025 à 16:50:21 | Symfony
SymfonyDay Chicago 2025 - The full schedule is live!

Mark your calendars for March 17, 2025 because SymfonyDay Chicago 2025 is shaping up to be an unmissable event! This full-day conference is dedicated to celebrating the amazing contributions o

5 févr. 2025 à 15:20:20 | Symfony
SymfonyLive Paris 2025 : Développer avec API Platform 4, ça change quoi ?

SymfonyLive Paris 2025, conference in French language only, will take place from March 27 to 28! The schedule is currently being revealed as we go along. More details are available here.

Al

4 févr. 2025 à 09:20:06 | Symfony
SymfonyLive Berlin 2025: Where have the women of tech history gone?

SymfonyLive Berlin 2025, conference held in English, will take place from April 1 to 4! The schedule is being revealed gradually. More details are available here.

As we are now unveiling th

3 févr. 2025 à 14:40:15 | Symfony
A Week of Symfony #944 (27 January - 2 February 2025)

This week, Symfony released maintenance versions 6.4.18, 7.1.11 and 7.2.3. In addition, Twig published a security advisory and we shared several updates about upcoming Symfony conferences. Lastly, Sym

2 févr. 2025 à 10:50:16 | Symfony
Back on the inspiring SymfonyCon Vienna 2024!

We were absolutely thrilled to gather with the incredible Symfony community for the first time in Vienna, Austria, from December 5th to 6th, surrounded by the warm and festive atmosphere of the

31 janv. 2025 à 12:30:18 | Symfony