New in Symfony 5.1: Misc. improvements (Part 2)
YAML linter command¶
Symfony includes a linter that checks the validity of the syntax of your YAML
config files. It's available under the
lint:yaml command, but requires
using the entire Symfony project console application.
In Symfony 5.1 we added a single-command application called
you can lint YAML files using only the Yaml and Console components:
$ php vendor/bin/yaml-lint translations/
Improved RoundRobin mailer transport¶
If your application doesn't use the Messenger component to send emails and sends just one message, the RoundRobin transport doesn't work as expected, because its first transport is always used. In Symfony 5.1 we improved it to select the first transport randomly.
Separate log channel for deprecations¶
Deprecation messages are the key of the Symfony Backward Compatibility Promise, which ensures a smooth upgrade between minor Symfony versions. However, sometimes it's overwhelming to see lots of deprecations in your log files. In other projects, you may want to focus exclusively on deprecations, so the other log messages only complicate things.
That's why in Symfony 5.1 we've added some optional configuration in the
config/packages/prod/monolog.yaml file to log the deprecations in a separate
file. The new config is commented by default, so you need to enable it
explicitly if you want to use it.
New in Symfony 5.1: Misc. improvements (Part 2) symfony.com/blog/new-in-symfony-5-1-misc-improvements-part-2Tweet this
Become a certified developer! Exams are online and available in all countries.Register Now
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.