Living on the Edge
A series of posts showcasing the new features introduced by each Symfony version.
Symfony 5.1 adds a new InputBag class, adds support for encrypting session data, adds more cache-control directives and allows to build cookie objects more easily.
Symfony 5.1 improves forms to validate HTML5 colors, allow rounding percent values, display HTML contents in labels, simplify timezone management, provide better defaults for inputmode option and other improvements in choice types.
Symfony 5.1 validator adds support for three-letter country and language codes, adds an option to check that the collection items is divisible by a certain number and allows to define validation callables.
In Symfony 5.1, the OptionsResolver component has introduced an optional fluent interface to configure options and a way to provide extra debug information per option.
Symfony 5.1 adds a new access decision strategy called "priority" which uses the decision from the highest priority security voter.
Symfony 5.1 adds a new AtLeastOneOf validator to check that a given value satisfies at least one of the given constraints.
In Symfony 5.1, the Inflector component has been deprecated and its logic has been moved into the String component.
In Symfony 5.1, you can turn public services into private services while keeping the backward compatibility of your code.
Symfony 5.1 improves the HttpClient component to provide out-of-the-box protection against SSRF (Server-side request forgery).
In Symfony 5.1 you can validate the syntax of your ExpressionLanguage expressions without parsing or evaluating them.