FriendsOfSymfony / FOSElasticaBundle

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

The service "fos_elastica.command.delete" has a dependency on a non-existent service "fos_elastica.client.default" #1864

Open killerwolf opened 2 years ago

killerwolf commented 2 years ago

Hi,

I am not using the default client but using my own defined one main

Capture d’écran 2022-04-04 à 15 12 19

Capture d’écran 2022-04-04 à 15 14 58

How could i fix this ?

killerwolf commented 2 years ago

It only happens in prod env env, It seems like the service is present in dev mode, but not in prod mode

killerwolf commented 2 years ago

I fixed this issue by adding the default => [] in my configuration

prependExtensionConfig seems to have a weird behaviour in dev/pord env

Capture d’écran 2022-04-04 à 15 48 17