Skip to content

Commit 5dbcf7a

Browse files
Improve clarity in event subscriber docs (#10443)
1 parent e565e29 commit 5dbcf7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ class OrderShipped implements ShouldDispatchAfterCommit
658658
<a name="writing-event-subscribers"></a>
659659
### Writing Event Subscribers
660660

661-
Event subscribers are classes that may subscribe to multiple events from within the subscriber class itself, allowing you to define several event handlers within a single class. Subscribers should define a `subscribe` method, which will be passed an event dispatcher instance. You may call the `listen` method on the given dispatcher to register event listeners:
661+
Event subscribers are classes that may subscribe to multiple events from within the subscriber class itself, allowing you to define several event handlers within a single class. Subscribers should define a `subscribe` method, which receives an event dispatcher instance. You may call the `listen` method on the given dispatcher to register event listeners:
662662

663663
```php
664664
<?php

0 commit comments

Comments
 (0)