-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathservices.xml
36 lines (26 loc) · 1.71 KB
/
services.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<prototype namespace="Algolia\SearchBundle\Command\" resource="../../Command" autowire="true" autoconfigure="true" />
<service id="search.search_indexer_subscriber" class="Algolia\SearchBundle\EventListener\SearchIndexerSubscriber" public="true">
<argument type="service" id="search.service" />
<argument type="collection" /> <!-- doctrine subscribed events -->
<tag name="doctrine.event_subscriber" />
<tag name="doctrine_mongodb.odm.event_subscriber" />
</service>
<service id="search.client" class="Algolia\AlgoliaSearch\SearchClient" public="true" lazy="true">
<factory class="Algolia\AlgoliaSearch\SearchClient" method="create" />
<argument key="$appId">%env(ALGOLIA_APP_ID)%</argument>
<argument key="$apiKey">%env(ALGOLIA_API_KEY)%</argument>
</service>
<service id="Algolia\AlgoliaSearch\SearchClient" alias="search.client" />
<service id="Algolia\SearchBundle\SearchServiceInterface" alias="search.service"/>
<service id="Algolia\SearchBundle\Settings\SettingsManager" alias="search.settings_manager"/>
<!-- CustomNormalizer is not registered by framework-bundle -->
<service id="custom_normalizer" class="Symfony\Component\Serializer\Normalizer\CustomNormalizer" public="false">
<tag name="serializer.normalizer" priority="-800" />
</service>
</services>
</container>