New in Symfony 3.4: Validator information in the Symfony profiler
In Symfony 3.4, the web debug toolbar and the profiler will include a new panel for the Validator component operations:
Although the current Forms panel already includes validation information, there
are other use-cases where you're likely to call the validator. The purpose of
this panel is to collect every call made to the validator (e.g.
ValidatorInterface::validate()) along with detailed information about them.
For example, when dealing with APIs and mobile apps, it's not always easy to get the response body to find out what's wrong with the call. This new panel makes much easier to get those details without accessing the API response.
Each validator call is shown as an entry in the new panel. This image shows a single successful entry fully expanded:
This image shows a fully expanded entry that contains an error:
New in Symfony 3.4: Validator information in the Symfony profiler symfony.com/blog/new-in-symfony-3-4-validator-information-in-the-symfony-profilerTweet 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.