Skip to content

Why is validation process executed on kernel.view instead of kernel.request ? #1538

Description

@jdeniau

I am upgrading a pretty "custom" API from v1 to v2, and thus I have a lot of "symfony-style" controllers.

I ask myself why do validation process appear after the "controller" (or action) ?

As I see it, I think I will need to "duplicate" the validation logic to appear before the controller code appends (at least the configuration), because the controller contain the core logic (saving stuff to persistance layer, etc.)

Am I missing a reason for that ?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions