Skip to content

Commit e151ae0

Browse files
Merge #346
346: Allow to autowire Engine r=norkunas a=norkunas # Pull Request ## Related issue Fixes #<issue_number> ## What does this PR do? - Allows to autowire Engine service. Need this in my own app ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Co-authored-by: Tomas <[email protected]>
2 parents 4bd0b39 + 2ffc217 commit e151ae0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config/services.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
<service id="meilisearch.engine" class="Meilisearch\Bundle\Engine">
88
<argument type="service" id="meilisearch.client" />
99
</service>
10+
<service id="Meilisearch\Bundle\Engine" alias="meilisearch.engine" />
1011

1112
<!-- After bumping to Symfony >5.1 deeprecate public services into private services -->
1213
<service id="meilisearch.service" class="Meilisearch\Bundle\Services\MeilisearchService" public="true">
13-
<argument /><!-- After bumping to Symfony 5.1 use type="abstract" -->
14+
<argument type="abstract">normalizer</argument>
1415
<argument type="service" id="meilisearch.engine" />
15-
<argument type="collection" /><!-- After bumping to Symfony 5.1 use type="abstract" -->
16+
<argument type="abstract">configuration</argument>
1617
<argument type="service" id="property_accessor" />
1718
</service>
1819
<service id="search.service" alias="meilisearch.service" public="true">

0 commit comments

Comments
 (0)