Living on the Edge

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

Filter by version: 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: Updated Security System

Symfony 5.1 includes a new Security system which simplifies the existing security features while giving developers more flexibility in a much more approachable way.

New in Symfony 5.1: Automatic schema updates

Symfony 5.1 automates the creation of the database tables required by some components to store their contents (Messenger, Lock, Cache, etc.)

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.