Skip to content

Commit 91b8ae6

Browse files
committed
Merge pull request #937 from scribblet/patch-1
Corrected FOSUserEvents.php comment pointing to wrong event
2 parents 1ee25d9 + 6fa3924 commit 91b8ae6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Controller/GroupController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function deleteAction(Request $request, $groupName)
157157

158158
/** @var $dispatcher \Symfony\Component\EventDispatcher\EventDispatcherInterface */
159159
$dispatcher = $this->container->get('event_dispatcher');
160-
$dispatcher->dispatch(FOSUserEvents::GROUP_CREATE_COMPLETED, new FilterGroupResponseEvent($group, $request, $response));
160+
$dispatcher->dispatch(FOSUserEvents::GROUP_DELETE_COMPLETED, new FilterGroupResponseEvent($group, $request, $response));
161161

162162
return $response;
163163
}

FOSUserEvents.php

Lines changed: 2 additions & 2 deletions
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

@@ -148,7 +148,7 @@ final class FOSUserEvents
148148
* The REGISTRATION_CONFIRM event occurs just before confirming the account.
149149
*
150150
* This event allows you to access the user which will be confirmed.
151-
* The event listener method receives a FOS\UserBundle\Event\UserEvent instance.
151+
* The event listener method receives a FOS\UserBundle\Event\GetResponseUserEvent instance.
152152
*/
153153
const REGISTRATION_CONFIRM = 'fos_user.registration.confirm';
154154

0 commit comments

Comments
 (0)