<?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">

    <parameters>
        <parameter key="contentmapping.destinationadapter.solarium.batch_size">20</parameter>
    </parameters>

    <services>

        <!-- Console Commands -->
        <service class="Webfactory\ContentMappingDestinationAdapterSolariumBundle\Command\DeleteFromIndexCommand">
            <argument type="service" id="solarium.client"/>
            <argument type="service" id="logger"/>
            <tag name="monolog.logger" channel="contentmapping" />
            <tag name="console.command" />
        </service>

        <!-- DestinationAdapter -->
        <service id="contentmapping.destinationadapter.solarium" class="Webfactory\ContentMapping\DestinationAdapter\Solarium\SolariumDestinationAdapter">
            <factory class="Webfactory\ContentMappingDestinationAdapterSolariumBundle\SolariumDestinationAdapterFactory" method="create" />
            <argument type="service" id="solarium.client"/>
            <argument type="service" id="logger" />
            <argument>%contentmapping.destinationadapter.solarium.batch_size%</argument>
            <argument>%kernel.debug%</argument>
            <tag name="monolog.logger" channel="contentmapping" />
        </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">

    <parameters>
        <parameter key="contentmapping.destinationadapter.solarium.batch_size">20</parameter>
    </parameters>

    <services>

        <!-- Console Commands -->
        <service id="contentmapping.destinationadapter.solarium.delete_from_index_command" class="Webfactory\ContentMappingDestinationAdapterSolariumBundle\Command\DeleteFromIndexCommand">
            <argument type="service" id="solarium.client"/>
            <argument type="service" id="logger"/>
            <tag name="monolog.logger" channel="contentmapping" />
            <tag name="console.command" />
        </service>

        <!-- DestinationAdapter -->
        <service id="contentmapping.destinationadapter.solarium" class="Webfactory\ContentMapping\DestinationAdapter\Solarium\SolariumDestinationAdapter">
            <factory class="Webfactory\ContentMappingDestinationAdapterSolariumBundle\SolariumDestinationAdapterFactory" method="create" />
            <argument type="service" id="solarium.client"/>
            <argument type="service" id="logger" />
            <argument>%contentmapping.destinationadapter.solarium.batch_size%</argument>
            <argument>%kernel.debug%</argument>
            <tag name="monolog.logger" channel="contentmapping" />
        </service>

    </services>
</container>

Add service ID to avoid Symfony 3.4 deprecation notice
Add service ID to avoid Symfony 3.4 deprecation notice
