You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot autowire service: argument "$events" of method "__construct()" references class
"Symfony\Component\EventDispatcher\EventDispatcher" but no such service exists.
Try changing the type-hint to one of its parents:
interface "Symfony\Component\EventDispatcher\EventDispatcherInterface",
interface "Psr\EventDispatcher\EventDispatcherInterface", or
interface "Symfony\Contracts\EventDispatcher\EventDispatcherInterface".
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.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
There's not a single mention of how to autowire the kernel's EventDispatcher service in these files:
symfony-docs/components/event_dispatcher.rst
Lines 96 to 99 in b9f8400
https://github.com/symfony/symfony-docs/blob/7.3/event_dispatcher.rst
My attempt:
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.
The text was updated successfully, but these errors were encountered: