New in Symfony 3.4: Validator information in the Symfony profiler
Warning: This post is about an unsupported Symfony version. Some of this information may be out of date. Read the most recent Symfony Docs.
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:
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.