Skip to content

Commit f6ae407

Browse files
committed
Corrected FOSUserEvents.php comment pointing to wrong event
 /**      * The REGISTRATION_INITIALIZE event occurs when the registration process is initialized.      *      * This event allows you to modify the default values of the user before binding the form.      * The event listener method receives a FOS\UserBundle\Event\GetResponseUserEvent instance.      */     const REGISTRATION_INITIALIZE = 'fos_user.registration.initialize'; REGISTRATION_INITIALIZE event listeners actually receive a UserEvent object as detailed in this line of code from RegistrationController.php line 46: $dispatcher->dispatch(FOSUserEvents::REGISTRATION_INITIALIZE, new UserEvent($user, $request));
1 parent 1ee25d9 commit f6ae407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FOSUserEvents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ final class FOSUserEvents
124124
* The REGISTRATION_INITIALIZE event occurs when the registration process is initialized.
125125
*
126126
* This event allows you to modify the default values of the user before binding the form.
127-
* The event listener method receives a FOS\UserBundle\Event\GetResponseUserEvent instance.
127+
* The event listener method receives a FOS\UserBundle\Event\UserEvent instance.
128128
*/
129129
const REGISTRATION_INITIALIZE = 'fos_user.registration.initialize';
130130

0 commit comments

Comments
 (0)