Living on the Edge
A series of posts showcasing the new features introduced by each Symfony version.
The new getAcceptableFormats() method added in Symfony 4.2 allows to get a simplified list of request formats accepted by browsers.
In Symfony 4.2, the custom names of properties when objects are serialized can be configured using metadata, instead of having to create a name converter.
In Symfony 4.2 we've deprecated some relevant features (like the base controller class and some console options) that you may need to update in your applications.
In Symfony 4.2 we added a new waitUntil() method which allows to control for how long the application waits for a process.
MakerBundle has two new features to streamline security: make:user and make:auth!
In Symfony 4.2, cookies are made secure automatically when the request uses HTTPS, making your application safe by default.
In Symfony 4.2, Form type extensions have been improved to simplify their configuration and to allow them to extend multiple form types using a single class.
Symfony 4.2 replaces the transChoice() method by the IntlMessageFormatter class which implements the MessageFormat standard.
Symfony 4.2 introduces a new VarExporter component to provide a better alternative to PHP's var_export() function.
Symfony 4.2 makes it easier to configure the samesite cookie attribute in several parts of the framework.