New in Symfony 3.4: Validator information in the Symfony profiler

Contributed by
Maxime Steinhausser
in #22554.

Symfony 3.4 will be released in November 2017, alongside Symfony 4.0. This is the first article of the series that shows the most important new features introduced by this Symfony version.

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:

Help the Symfony project!

As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.

New in Symfony 3.4: Validator information in the Symfony profiler

Tweet this


Great job!
Good Job thanks !
Perfect! Thanks!
Perfect!!!! Good Job !
Good Job thanks!

Comments are closed.

To ensure that comments stay relevant, they are closed for old posts.