Skip to content

Commit 348466f

Browse files
Mention 5.34.0 instead
Technically, autoloading of listeners in addons was introduced in 5.33.0, but a fix for `__invoke`able listener classes was added in 5.34.0, so let's just mention that version instead.
1 parent 4ad990f commit 348466f

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
@@ -441,7 +441,7 @@ return view('custom::foo');
441441
## Events
442442

443443
::: tip
444-
Statamic v5.33.0 introduced the concept of "autoloading" for event listeners.
444+
Statamic v5.34.0 introduced the concept of "autoloading" for event listeners.
445445

446446
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

0 commit comments

Comments
 (0)