3

Symfony 6.2 curated new features

 1 year ago
source link: https://symfony.com/blog/symfony-6-2-curated-new-features
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Symfony 6.2 curated new features

November 30, 2022

·

Published by Fabien Potencier

sulu-logo copyCreated with Sketch.
Symfony 6.2 is backed by Sulu. Sulu is the CMS for Symfony developers. It provides pre-built content-management features while giving developers the freedom to build, deploy, and maintain custom solutions using full-stack Symfony. Sulu is ideal for creating complex websites, integrating external tools, and building custom-built solutions.
Symfony 6.2 is backed by Les-Tilleuls.coop. Les-Tilleuls.coop is a team of 70+ Symfony experts who can help you design, develop and fix your projects. We provide a wide range of professional services including development, consulting, coaching, training and audits. We also are highly skilled in JS, Go and DevOps. We are a worker cooperative!

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.
Published in #Releases

Help the Symfony project!

As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.

Comments

Every half year it is just mind-blowing what the next Symfony version adds. Thanks to all who contribute. You're awesome!
I'm so glad Symfony community does not stop improving the framework. All of you should be very proud! You're fantastic!
Shamshid said on Dec 2, 2022 at 09:44
Really great to see the features and improvements. Thanks to all the contributors who spent their time and effort for the community.
Login with SymfonyConnect to post a comment

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK