Skip to content

Commit 38beb37

Browse files
committed
Revert "Document support for event listener auto-registration from typehinted __invoke methods (#1519)"
This reverts commit 4ad990f.
1 parent 77d859a commit 38beb37

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` or `__invoke` 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` 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)