Friday, April 26, 2024
HomePHPSymfony 6.3 curated new options (Symfony Weblog)

Symfony 6.3 curated new options (Symfony Weblog)


Symfony 6.3.0 has been launched. As for another Symfony launch, our backward compatibility promise applies and because of this you need to be capable to improve simply to six.3 with out altering something in your code.

Over the past couple of months, we have blogged in regards to the nice 6.3 new options. I extremely advocate you to learn these articles about Symfony 6.3 as they include the main adjustments for this new model:

  • Early Hints: Symfony 6.3 provides help for Early Hints, which permits browsers to obtain belongings whereas servers are nonetheless getting ready a response. This improves perceived efficiency considerably.
  • NoSuspiciousCharacters Constraint: Symfony 6.3 features a new NoSuspiciousCharacters constraint to keep away from spoofing safety assaults based mostly on utilizing characters which might be completely different however look the identical.
  • HTTP Exception Attributes: Symfony 6.3 introduces two new attributes to configure the standing code, headers and log stage of your HTTP exceptions.
  • Mapping Request Information to Typed Objects: Symfony 6.3 introduces two new PHP attributes to map the incoming request knowledge into typed objects like DTOs and validates them routinely.
  • Focused Worth Resolvers: Symfony 6.3 introduces a brand new ValueResolver attribute to explicitly choose the argument resolver to make use of within the controller arguments.
  • Password Power Constraint: Symfony 6.3 features a password energy validator to verify that the given passwords attain a sure safety stage based mostly on their entropy.
  • OpenID Join Token Handler: Symfony 6.3 provides compatibility with OpenID Join servers through two new OIDC token handlers.
  • Request Payload: Symfony 6.3 provides a getPayload() methodology to the Request object to get their POST contents and/or physique contents.
  • Serializer Debug Command: Symfony 6.3 features a new command that dumps the serializer metadata of a given class that will help you debug any Serializer points.
  • Kind Enhancements: Symfony 6.3 improves the dealing with of seconds in date/time fields, updates the utilization of HTML5 widgets for date/time and permits to configure the selection placeholder choices.
  • Enum Enhancements: Symfony 6.3 provides help for enums in expressions, config bushes and route parameters.
  • Login and Logout Enhancements: Symfony 6.3 permits to redirect customers after their programmatic login, provides Bear in mind Me help for JSON logins and permits to clear website knowledge after consumer logout.
  • Question Parameters Mapper: Symfony 6.3 features a new MapQueryParameter attribute to map and validate particular person question string parameters to controller arguments.
  • Efficiency Enhancements: Symfony 6.3 improves efficiency of translation message extraction, service container compilation and serializer normalization/denormalization.
  • Emoji Enhancements: Symfony 6.3 provides a brand new characteristic to strip emojis from string contents and the choice to compress all of the emoji knowledge to save lots of disk area.
  • Webhook and RemoteEvent Elements: Symfony 6.3 introduces some new parts to ease the creation and dealing with of webhooks in your functions.
  • Clock Enhancements: Symfony 6.3 introduces a brand new Clock class and a brand new ClockAwareTrait; it additionally integrates the Clock element in different Symfony options.
  • DX Enhancements (Half 1): Symfony 6.3 consists of DX enhancements within the world app variable, the YAML element, the profiler, the cache swimming pools and the dump capabilities.
  • HttpClient Enhancements: Symfony 6.3 improves the HTTP shopper with a brand new JsonMockResponse, a number of retry URIs, further configurable choices, TLSv1.2 by default, file add enhancements and help for URI templates.
  • DX Enhancements (Half 2): Symfony 6.3 will embody DX enhancements resembling invisible character detection in VarDumper, improved dumping of YAML dates, construct parameters in service container and streamed JSON responses.
  • Notifier Integrations: Symfony 6.3 provides new Notifier integrations for Twitter, Mastodon, LINE, Pushover, PagerDuty and extra.
  • WebProfiler Enhancements: Symfony 6.3 improves the profiler with higher accessibility, dynamic favicons and clickable template paths.
  • DX Enhancements (Half 3): Symfony 6.3 improves the Cascade constraint, permits to trim XML parameters, permits to set providers within the take a look at container and improves the dealing with of Console indicators.
  • Dependency Injection Enhancements: Symfony 6.3 improves the Dependency Injection element so as to add help for autowiring providers as closures and callable strategies, producing adapters for useful interfaces and for autowiring lazy providers, offering a approach to specific the necessity for laziness on the patron facet.
  • AssetMapper Part: Symfony 6.3 features a new AssetMapper element with full import maps help as a substitute for Webpack Encore.
  • Webhook Integration with Mailer and Notifier: Symfony 6.3 supplies full webhook integration with Mailer and Notifier to summary the variations within the dealing with of webhooks of third-party providers.
  • Scheduler Part: Symfony 6.3 features a new Scheduler element that integrates tightly with the Messenger element to create messages that ought to be dealt with a number of instances on a predefined schedule.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments