Living on the Edge

A series of posts showcasing the new features introduced by each Symfony version.

Filter by version: 5.3 5.2 5.1 5.0-4.4 4.3 4.2 4.1 4.0-3.4 3.3 3.2 3.1 3.0-2.8 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0

New in Symfony 5.1: HttpFoundation improvements

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.

New in Symfony 5.1: Form improvements

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.

New in Symfony 5.1: Validator improvements

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.

New in Symfony 5.1: OptionsResolver improvements

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.

New in Symfony 5.1: Access decision based on voter priority

Symfony 5.1 adds a new access decision strategy called "priority" which uses the decision from the highest priority security voter.

New in Symfony 5.1: AtLeastOneOf validator

Symfony 5.1 adds a new AtLeastOneOf validator to check that a given value satisfies at least one of the given constraints.

New in Symfony 5.1: Deprecated the Inflector component

In Symfony 5.1, the Inflector component has been deprecated and its logic has been moved into the String component.

New in Symfony 5.1: Deprecate public services into private services

In Symfony 5.1, you can turn public services into private services while keeping the backward compatibility of your code.

New in Symfony 5.1: Server-side request forgery protection

Symfony 5.1 improves the HttpClient component to provide out-of-the-box protection against SSRF (Server-side request forgery).

New in Symfony 5.1: ExpressionLanguage validator

In Symfony 5.1 you can validate the syntax of your ExpressionLanguage expressions without parsing or evaluating them.