Skip to content

Commit 7bbdf23

Browse files
committed
Merge pull request #929 from tonypiper/patch-1
Update Resources/doc/controller_events.md
2 parents db1ebdc + 62a4ada commit 7bbdf23

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Resources/doc/controller_events.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ their logic. All events can be found in the constants of the
1111
`FOS\UserBundle\FOSUserEvents` class.
1212

1313
All controllers follow the same convention: they dispatch a `SUCCESS` event
14-
when the form is valid before saving the user, and a `COMPLETE` event when
14+
when the form is valid before saving the user, and a `COMPLETED` event when
1515
it is done. Thus, all `SUCCESS` events allow you to set a response if you
16-
don't want the default redirection. and all `COMPLETE` events give you access
16+
don't want the default redirection. and all `COMPLETED` events give you access
1717
to the response before it is returned.
1818

19+
Controllers with a form also dispatch an `INITIALIZE` event after the entity is
20+
fetched, but before the form is created.
21+
1922
For instance, this listener will change the redirection after the password
2023
resetting to go to the homepage instead of the profile:
2124

0 commit comments

Comments
 (0)