alexfinnarn/moz

Use Query Attributes

Opened this issue · 0 comments

In the controllers, currently, all the query parameters are taken off the request object in the actual controller method. However, you can apparently map them in the controller action: https://symfony.com/doc/current/controller.html#mapping-the-whole-query-string

I should try to write a post about refactoring my code to use the query string attribute and then the DTO approach.

It would also be nice to go over what a data transfer object is and why they are used, especially in PHP code.