FriendsOfSymfony / FOSElasticaBundle

Elasticsearch PHP integration for your Symfony project using Elastica.
http://friendsofsymfony.github.io
MIT License
1.25k stars 793 forks source link

fos:elastica:populate --pager-persister=queue #1862

Open naheelldev opened 2 years ago

naheelldev commented 2 years ago

HI, After setup Speed up populate command with AWS SQS and execute php bin/console fos:elastica:populate --pager-persister=queue

Argument 1 passed to "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" must be an instance of "Symfony\Component\EventDispatcher\Event", "FOS\ElasticaBundle\Persister\Event\PrePersistEvent" given.

diimpp commented 1 year ago

I've similar error while using this bundle at symfony 3.4, but with symfony/contracts installed. Elastica bundle events determine symfony3/4 event style by contracts presence, which result in incorrect event usage.