<?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>
        <service id="search.search_indexer_subscriber" class="Algolia\SearchBundle\EventListener\SearchIndexerSubscriber" public="true">
            <argument type="service" id="search.index_manager" />
            <argument key="$subscribedEvents">%algolia_search.doctrineSubscribedEvents%</argument>
            <tag name="doctrine.event_subscriber" connection="default" />
            <tag name="doctrine_mongodb.odm.event_subscriber" connection="default" />
        </service>

        <service id="algolia_client" class="AlgoliaSearch\Client" public="false">
            <argument key="$applicationID">%env(ALGOLIA_APP_ID)%</argument>
            <argument key="$apiKey">%env(ALGOLIA_API_KEY)%</argument>
        </service>

        <service id="search.engine" class="Algolia\SearchBundle\Engine\AlgoliaEngine" public="true">
            <argument type="service" id="algolia_client" />
        </service>

    </services>

</container>

<?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">
            <tag name="console.command" />
        </prototype>

        <service id="search.search_indexer_subscriber" class="Algolia\SearchBundle\EventListener\SearchIndexerSubscriber" public="true">
            <argument type="service" id="search.index_manager" />
            <argument key="$subscribedEvents">%algolia_search.doctrineSubscribedEvents%</argument>
            <tag name="doctrine.event_subscriber" connection="default" />
            <tag name="doctrine_mongodb.odm.event_subscriber" connection="default" />
        </service>

        <service id="algolia_client" class="AlgoliaSearch\Client" public="false">
            <argument key="$applicationID">%env(ALGOLIA_APP_ID)%</argument>
            <argument key="$apiKey">%env(ALGOLIA_API_KEY)%</argument>
        </service>

        <service id="search.engine" class="Algolia\SearchBundle\Engine\AlgoliaEngine" public="true">
            <argument type="service" id="algolia_client" />
        </service>

    </services>

</container>

Tag commands to make them public
fix(config): Tag commands to make them public
