Skip to content

Commit f3d88f0

Browse files
Add back the change from #1519
1 parent 38beb37 commit f3d88f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/collections/extending-docs/addons.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ return view('custom::foo');
443443
::: tip
444444
Statamic v5.33.0 introduced the concept of "autoloading" for event listeners.
445445

446-
As long as your event listener lives in `src/Listeners` and the event is typehinted in the listener's `handle` method, they will be automatically registered by Statamic, without you needing to register them manually.
446+
As long as your event listener lives in `src/Listeners` and the event is typehinted in the listener's `handle` or `__invoke` method, they will be automatically registered by Statamic, without you needing to register them manually.
447447

448448
Subscribers will also be autoloaded, as long as they live in `src/Subscribers`.
449449

0 commit comments

Comments
 (0)