Skip to content

Commit 9e3b535

Browse files
committed
fixing countinuous integration
1 parent d302919 commit 9e3b535

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/book/v3/events.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function onAfterDispatch(ControllerEvent $e): void
101101
}
102102
```
103103

104-
So every time the `updateAction` is accessed and the method is post,
104+
So every time the `updateAction` is accessed and the method is post,
105105
right after the action is dispatched, we can log that the user was updated.
106106

107107
We can use the `onBeforeDispatch` in the same way, to log right before the user is updated.
@@ -136,8 +136,8 @@ class UserUpdatedListener implements ControllerEventListenerInterface
136136
}
137137
```
138138

139-
The `attach` method is from the `ListenerAggregateInterface` which `ControllerEventListenerTrait`
140-
already is overriding it so can be used in a global way with `onBeforeDispatch` and `onAfterDispatch`
139+
The `attach` method is from the `ListenerAggregateInterface` which `ControllerEventListenerTrait`
140+
already is overriding it so can be used in a global way with `onBeforeDispatch` and `onAfterDispatch`
141141
methods, but we can make our custom event and bind it to our method.
142142

143143
In this case we create attach an event called `user.profile.update` and bind it to the `userProfileUpdated` method.

0 commit comments

Comments
 (0)