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
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