Symfony event subscriber doesn't react to dispatch Symfony event subscriber doesn't react to dispatch symfony symfony

Symfony event subscriber doesn't react to dispatch


Replace `$this->eventDispatcher->dispatch("game.started", new GameStartEvent());`with`$this->eventDispatcher->dispatch("game.started", $event);`

You seem to have at least your Event in App/Entity which is not autowired by default and shouldn't be. Have a look at your services.yml, it should be excluded from Autowiring. Move your stuff to something like App/Event