Contributed by Théo FIDRY in #41954.
The Filesystem component is a small utility component that provides functions related to the filesystem which are independent of the underlying operating system. Its scope is small, but it's so convenient that it has more than 200 million downloads. In Symfony 5.4 we're improving this component by adding a new Path class. This class provides utilities
Contributed by Grégoire Pineau in #42244.
In Symfony applications, logging is available either via Symfony's built-in logger and or via the Monolog logger and its tight integration with Symfony. When using Monolog you can access to features such as excluding certain HTTP codes from logs and logging messages to different files. In Symfony 5.4 we've improved the logger with a new feature to
Symfony 6.0.0-BETA2 has just been released. Here is a list of the most important changes: bug #44051 [Notifier] Fix package name (@fabpot) bug #44050 [Notifier] Fix package names (@fabpot) bug #44042 Fix DateIntervalToStringTransformer::transform() doc (@BenMorel) bug #44034 [Yaml] don't try to replace references in quoted strings (@xabbuh) bug #44013 [ErrorHandler] fix parsing @param with dollars in the description (@nicolas-grekas) bug #44010 [DependencyInjection] fix auto-ref
Symfony 5.4.0-BETA2 has just been released. Here is a list of the most important changes: bug #44042 Fix DateIntervalToStringTransformer::transform() doc (@BenMorel) bug #44034 [Yaml] don't try to replace references in quoted strings (@xabbuh) bug #44013 [ErrorHandler] fix parsing @param with dollars in the description (@nicolas-grekas) bug #44010 [DependencyInjection] fix auto-refresh when inline_factories is enabled (@nicolas-grekas) bug #44028 [ErrorHandler] Fix FlattenExcept
This week, Symfony development activity focused on polishing and tweaking the upcoming Symfony 5.4 and 6.0 releases (both will be published before the end of this month). In addition, Symfony announced a new sponsoring program for SaaS providers to back their Symfony bridges.
Symfony development highlights
This week, 39 pull requests were merged (26 in code and 13 in docs) and 43 issues were closed (33 in code and 10 in docs). Excluding merges, 21 authors made 509 additions an
The Symfony Validator component provides tens of validators to validate that a given value matches some expected constraints (e.g. not blank, being a valid IP address, being a string shorter than 255 characters, etc.) In Symfony 5.4 we've expanded that list with two new validators/constraints.
CIDR Validator
Contributed by Sorin Pop
in #43593.
This checks that a value is a valid CIDR (Cl
Contributed by Jérémy Derussé in #43066.
Security Voters are the recommended way to check for permissions in Symfony applications. They allow to centralize the permission logic so you can reuse it from controllers, templates and services. During runtime, whenever Symfony finds a isGranted() method call, it iterates over all the voters, and stops when the configured access decision strateg
Contributed by Alexandre Daubois in #41994.
In Symfony 5.2 we added a feature to define validation constraints as PHP attributes. Attributes were very recent at that time, because they had just been added to PHP 8.0. The only caveat was that you couldn't nest PHP attributes, so you couldn't use them with constraints such as AtLeastOneOf and Collection. Thankfully, PHP 8.1, released on Nov
Symfony 5.4.0-BETA1 has just been released. Here is a list of the most important changes: feature #43916 [PropertyInfo] Support the list pseudo-type (@derrabus) feature #43850 Add completion for DebugConfig name and path arguments (@eclairia, @Adrien Jourdier) feature #43838 feat: add completion for DebugAutowiring search argument (@eclairia, @Adrien Jourdier) feature #38464 [Routing] Add support for aliasing routes (@Lctrs) feature #43923 [Console] Open CompleteCommand for cust
Symfony 6.0.0-BETA1 has just been released. Here is a list of the most important changes: feature #43916 [PropertyInfo] Support the list pseudo-type (@derrabus) feature #43850 Add completion for DebugConfig name and path arguments (@eclairia, @Adrien Jourdier) feature #43838 feat: add completion for DebugAutowiring search argument (@eclairia, @Adrien Jourdier) feature #38464 [Routing] Add support for aliasing routes (@Lctrs) feature #43923 [Console] Open CompleteCommand for cust