Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What's new in Symfony 6.1

What's new in Symfony 6.1

The upcoming release of Symfony 6.1 brings a series of new features, including the new HtmlSanitizer component and many improvements around developer experience. This talk shows some of the highlights.

Denis Brumann

April 28, 2022

More Decks by Denis Brumann

Other Decks in Programming


  1. Symfony User Group Köln What's new in Symfony 6.1 Denis

    Brumann @dbrumann Christian Flothmann @xabbuh powered by
  2. Christian Flothmann @xabbuh [email protected] Wer sind wir?

  3. Denis Brumann @dbrumann [email protected] Wer sind wir?

  4. Asset BrowserKit Cache Console Config DependencyInjection ErrorHandler ExpressionLanguage Finder Form

    FrameworkBundle HtmlSanitizer HttpClient HttpFoundation HttpKernel Ldap Lock Mailer Messenger Mime Notifier PhpUnitBridge PropertyInfo Routing Security Serializer Translation TwigBundle Validator Yaml
  5. First Contribution @norbertschultheisz @mjpvandenberg @sbelyshkin @ecourtial @mytuny @remilemonnier @chapterjason @jannick-holm

    @dmitryuk @angelov @bitgandtter @mondrake and many more…
  6. PHP 8.1 youtu.be/6JeDBRx8QIs Allgemein

  7. Allgemein Requiring the "symfony/symfony" package is deprecated Replace it with

    standalone components instead. #45563 @nicolas-grekas
  8. Cache #42997 @sbelyshkin Improve reliability & performance of TagAwareAdapter by

    making versions integral part of item value.
  9. Cache Adds a new command: cache:pool:invalidate-tags #44692 @kbond

  10. Console Deprecate properties $defaultName and $defaultDescription #45361 @derrabus

  11. Console Add autocompletion for fish shell #43641 @guillaume-a bin/console completion

    fish :> ~/.config/fish/completions/sf_console.fish
  12. DI Adds #[MapDecorated] and #[AsDecorator] attributes #46112 @chalasar #45834 @Jean-Beru

  13. DI

  14. DI Expressions as service factories #45512 @nicolas-grekas

  15. DI #[Autowire] #45657 & #45783 @kbond

  16. DI Add exclude to TaggedIterator and TaggedLocator #44774 @ruudk

  17. Expression Language Add support for null-safe operator #45795 @mytuny

  18. None
  19. Expression Language Add some more operators #45912 @fabpot

  20. Form Add prototype_options to CollectionType #45605 @michaelKaefer

  21. HtmlSanitizer New component #44681 @tgalopin

  22. None
  23. HtmlSanitizer #44681 @tgalopin

  24. HttpKernel Add Profiler::isEnabled() method #45265 @Bilge

  25. Routing Make route params available to route conditions #46042 @HypeMC

  26. Routing Allow using service in route condition #44405 @renanbr

  27. Routing (backed) EnumRequirements for routes #45803 @fancyweb

  28. Routing Requirement object with universal regex patterns #45528 @fancyweb

  29. HttpKernel Add UID argument value resolver #44665 @fancyweb

  30. HttpKernel Controller argument resolver for backed enums #44831 @ogizanagi

  31. HttpKernel Add ArgumentMetadata getAttributes #45094 @seldaek

  32. Mailer Improve extensibility of EsmtpTransport #44446 @ampaze

  33. Mailer Implement EmailTags for AmazonMailer #45222 @driesvints

  34. Mime Add DraftMail type: $content = (new DraftEmail() :>html($twig:>render(::.)) :>attach(::.)

    :>toString() ; $response = new Response($message:>toString()); $contentDisposition = $response:>headers:>makeDisposition( ResponseHeaderBag::DISPOSITION_ATTACHMENT, 'download.eml' ); #44311 @kbond
  35. Messenger Add Redis Sentinel support #43163 @norbertschultheisz

  36. Messenger Support setting connection_name for AMQP transport #45436 @dmitryuk

  37. Messenger #45436 @dmitryuk

  38. Messenger Add TransportMessageIdStamp to RedisSender #44522 @GaryPEGEOT

  39. Messenger Add SerializedMessageStamp #44589 @nikophil

  40. Notifier Sendberry Bridge KazInfoTeh Bridge 46elks Bridge OrangeSMS Bridge Engagespot

    Bridge #45195 @StaffNova #44360 @taranovegor #44874 @jongotlin #44884 @enigma972 #44303 @danut007ro
  41. PHPUnitBridge Add option ignoreFile to configure a list of known

    deprecations to ignore: #45226 @mondrake /Test message .*/ /^\d* occurrences/
  42. Security Allow to specify a RequestMatcher in access_contol #44670 @TristanPouliquen

  43. Security #44670 @TristanPouliquen

  44. Serializer Add context builders #43973 @mtarld

  45. Serializer Deprecate context aware interface #43982 @mtarld

  46. Translation Add support for dumping xliff translations as .xlf or

    .xliff file This is needed for example for the translation provider Lokalise and the GitLab integration for this provider. #45421 @DanielBadura
  47. Translation New service: LocaleSwitcher #45793 @kbond

  48. None
  49. Validation Support specifying which fields should be unique in Unique

    constraint #42403 @wkania
  50. Validation #42403 @wkania

  51. Validation Allow creating constraints with required arguments #45072 @norkunas

  52. Validation Make constraint violation interfaces stringable #45484 @HypeMC

  53. Profiler HttpClient: Add button for copy as curl to WebProfiler

    #43931 @Deuchnord
  54. Profiler Add Xdebug info #44483 @chr-hertel

  55. Profiler Serializer Profiler #45656 @mtarld

  56. Symfony User Group Köln Vielen Dank Fragen? powered by