Living on the Edge
A series of posts showcasing the new features introduced by each Symfony version.
In Symfony 4.1, event listeners that define just one method can define an __invoke() method instead of a named method.
Symfony 4.1 defines a new discriminator class mapping for the Serializer component so you can serialize and deserialize from abstract classes and interfaces.
Symfony 4.1 includes a new option called "name_prefix" to define the prefix added to all the routes imported in a configuration file.
Symfony 4.1 adds a new email address validation mode that uses the validation logic defined in the HTML5 specification.
Symfony 3.4 implements PHP's SessionUpdateTimestampHandlerInterface to prevent session fixation issues and provide lazy-write in session handlers.
Symfony 3.4 includes a new debug:autowiring command so you can quickly know which type-hints must be used to inject the services.
In Symfony 3.4 you can disable global form themes for specific forms thanks to the new "only" keyword added to the "form_theme" Twig tag.
In Symfony 3.4, Guard authenticators can implement a new method called supports() to better separate the responsibilities of the getCredentials() method.
Symfony 3.4 adds a new command called debug:form to introspect all the information available for form types and their options.
Symfony 3.4 allows binding services and parameters in local configuration files to avoid duplicating them in multiple service definitions.