Skip to content

Commit

Permalink
Fix a service configuration elasticsearch.xml
Browse files Browse the repository at this point in the history
Fix crash on Symfony Service Container build.

`BitBag\SyliusCatalogPlugin\Checker\Rule\Elasticsearch\ProductNameRule` requires `$productNameNameResolver` as instance of `ConcatedNameResolverInterface`. But (probably from a historical reason) is configured to get just `%bitbag_es_shop_name_property_prefix%`.
  • Loading branch information
jaroslavtyc authored and christopherhero committed Oct 17, 2023
1 parent 3394e4f commit cbe8b64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<service id="bitbag_sylius_catalog_plugin.catalog_rule_checker.elasticsearch.by_name" class="BitBag\SyliusCatalogPlugin\Checker\Rule\Elasticsearch\ProductNameRule">
<tag name="bitbag_sylius_catalog_plugin.catalog_rule_checker" type="sort_by_name" label="bitbag_sylius_catalog_plugin.ui.form.catalog_rule.sort_by_name" form-type="BitBag\SyliusCatalogPlugin\Form\Type\ProductNameConfigurationType"/>
<argument type="service" id="sylius.context.locale" />
<argument>%bitbag_es_shop_name_property_prefix%</argument>
<argument type="service" id="bitbag_sylius_elasticsearch_plugin.property_name_resolver.name" />
</service>

<service id="bitbag_sylius_catalog_plugin.catalog_rule_checker.elasticsearch.by_price" class="BitBag\SyliusCatalogPlugin\Checker\Rule\Elasticsearch\PriceRule">
Expand Down

0 comments on commit cbe8b64

Please sign in to comment.