Living on the Edge
A series of posts showcasing the new features introduced by each Symfony version.
Symfony 5.1 introduces a new syntax to stack decorators, providing a simpler alternative to classic middleware.
In Symfony 5.1 we've improved MicroKernelTrait to allow using the Kernel as a registry of autowired controllers and service factories.
In Symfony 5.1, services can define abstract arguments whose values are calculated at runtime.
In Symfony 5.1, it's much easier to refer to the original service when using service decoration.
In Symfony 5.1, routes can define different hosts for each locale, which is useful to create fully internationalized URLs.
In Symfony 5.1, the asset manifest file can be stored in remote servers, which is ideal when using CDNs.
In Symfony 5.1, logout customization will be much easier to implement thanks to a new LogoutEvent.
Symfony 5.1 introduces new utilities to control the cursor in console commands.
In Symfony 5.1, you can configure PHP preloading by using some dependency injection tags to define which classes should be preloaded and which ones should not.
In Symfony 5.1, the HttpClient component can use HTTP/2 without installing the cURL library thanks to the amp/http-client PHP package.