Symfony event vs service
up vote
-1
down vote
favorite
Hi I have a question about symfony application architecture, In my application I create different user, but when a user is created, updated, deleted, or his picture change, I need to do some action. What is the best way to do this ? I excluded to do this on a controller action. There is 2 others solutions : Create differents events like user.created, user.updated, ... And dispatch it on the controller action and make different listener to do the different action like MailListener (for user.created) TaskListener (for user.created) for add a task. Use a service like UserManager and on this service have a method like userCreated() and on this method call differents actions like sendMailOnCreated, addTaskOnCreated for example. For you what is the best method ?
...