diff --git a/content/collections/extending-docs/addons.md b/content/collections/extending-docs/addons.md index 4704c303c..ae2000606 100644 --- a/content/collections/extending-docs/addons.md +++ b/content/collections/extending-docs/addons.md @@ -441,9 +441,9 @@ return view('custom::foo'); ## Events ::: tip -Statamic v5.33.0 introduced the concept of "autoloading" for event listeners. +Statamic v5.35.0 introduced the concept of "autoloading" for event listeners. -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. +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. Subscribers will also be autoloaded, as long as they live in `src/Subscribers`.