Open
Description
There's not a single mention of how to autowire the kernel's EventDiser service in these files:
https://.com/symfony/symfony-docs/blob/7.3/event_diser.rst
My attempt:
Cannot autowire service: argument "$events" of method "__construct()" references class
"Symfony\Component\EventDiser\EventDiser" but no such service exists.
Try changing the type-hint to one of its parents:
interface "Symfony\Component\EventDiser\EventDiserInterface",
interface "Psr\EventDiser\EventDiserInterface", or
interface "Symfony\Contracts\EventDiser\EventDiserInterface".
Presumably the first suggestion from the exception message would work, but I have no idea what those three different interfaces are for.
This should be better documented somewhere.