Living on the Edge

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

Filter by version: 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 4.3: URL Env Var Processor

Symfony 4.3 adds two new env var processors so you can set the value of an option to the value of some URL or query string part.

New in Symfony 4.3: Simpler event dispatching

In Symfony 4.3, event dispatching has been simplified to rely on pure PHP classes instead of using arbitrary strings to name events.

New in Symfony 4.3: Native PHP Serialization for Messenger

In Symfony 4.3, the Messenger component will switch from JSON to native PHP to serialize messages to a transport.

New in Symfony 4.3: Routing improvements

In Symfony 4.3, routes can include boolean container parameters, some routing options have been deprecated and the debug:router command will also display the route conditions.

New in Symfony 4.3: Automatic Search Engine Protection

In Symfony 4.3, apps which are accidentally published in development version are protected by default to prevent indexing them in search engines.

New in Twig: Namespaced Classes

The next stable version of Twig 2.x will deprecate non-namespaced PHP classes, which will be removed in Twig 3.x (to be released during 2019).

New in Symfony 4.3: Indexed and Tagged Service Collections

Symfony 4.3 allows to use a custom index when injecting a collection of tagged services.

New in Symfony 4.3: Deprecated the Role and SwitchUserRole classes

Symfony 4.3 deprecates the Role and SwitchUserRole classes. Instead, define the user roles as strings and use the new SwitchUserToken to get the impersonated user.

New in Symfony 4.3: Form improvements

In Symfony 4.3 it will be easier to get the parent form view in templates, to display HTML contents in the form field help and to configure the input format of date form fields.

New in Symfony 4.3: Configurable Session ID

Symfony 4.3 includes two new config options to configure the session ID length and the number of characters used to encode it.