How to structure controllers in Symfony2?

Typically all the CRUD actions of an entity are grouped together. So the actions to create, retrieve, update and delete a user would be grouped into a UsersController. The actions to create, retrieve, update and delete a comment would be grouped into a CommentsController. And so forth.

1 Like