jolicode / elastically

🔍 JoliCode's Elastica wrapper to bootstrap Elasticsearch PHP integrations
MIT License
248 stars 37 forks source link

IndexationRequestHandler issues #143

Closed jmsche closed 1 year ago

jmsche commented 1 year ago

Hi,

When setting up latest (dev-master) code of Elastically on a project to test Symfony bridge, I get the following error when using Messenger:

Cannot autowire service "JoliCode\Elastically\Messenger\IndexationRequestHandler": argument "$indexNameMapper" of method "__construct()" references class "JoliCode\Elastically\IndexNameMapper" but no such service exists. You should maybe alias this class to the existing "elastically.default.index_name_mapper" service.

Setting the value of $indexNameMapper to the one provided by the error fixes it, but I'm wondering if it should not be autowired by the bridge instead?

Else docs should be updated.