Category: observer-pattern

Is their a benefit to use cutom event instead of dependencies injection in Symfony?

I have a Mailer service which is responsible to create and send emails. I also have Registration service which confirm a user registration. What are the benefits to dispatch a custom event, subscribe to it and then send the email…