I'm working on the FOSUserBundle, on EventListener for RegistrationUser.
In this bundle, when I create a user, I use a method updateUser() (in Vendor...Model/UserManagerInterface). This method seems to be subject to an EventListener that triggers at least two actions. Registering the information entered in the database. And sending an email to the user to send him login credentials.
I found the method that send the mail. By cons, I didn't find the one who makes the recording. I also didn't find where to set the two events.
First for all (and my personnal information), I try to find these two points still unknown. If anyone could guide me?
Then, depending on what we decide with our client, I may proceed to a surcharge (wich I still don't really know how to do), bu I imagine that I would find a little better once my two strangers found :-)
Thank's for your attention and help :-)
This is the function wich handles the email confirmation on registrationSucces
But I tell you that what you are trying to do is a bad practice. The recommended way is the following.
You never should modify the third party libraries in this case the Event Dispatcher System is made for this to earlier process the event and if its needed stop the propagation and avoid the "re-processing" of the event.
Hope it helps!!!!