comsave/salesforce-mapper-bundle

View on GitHub
src/LogicItLab/Salesforce/MapperBundle/Resources/config/services.xml

Summary

Maintainability
Test Coverage
<?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="logicitlab_salesforce_mapper" class="LogicItLab\Salesforce\MapperBundle\Mapper">
            <argument type="service" id="phpforce.soap_client"/>
            <argument type="service" id="logicitlab_salesforce_mapper.annotation_reader"/>
            <argument type="service" id="logicitlab_salesforce_mapper.cache"/>
            <call method="setEventDispatcher">
                <argument type="service" id="event_dispatcher"/>
            </call>
        </service>

        <service id="logicitlab_salesforce_mapper.bulk_saver"
                 class="LogicItLab\Salesforce\MapperBundle\MappedBulkSaver">
            <argument type="service" id="phpforce.soap_client.bulk_saver"/>
            <argument type="service" id="logicitlab_salesforce_mapper"/>
            <argument type="service" id="logicitlab_salesforce_mapper.annotation_reader"/>
        </service>

        <service id="logicitlab_salesforce_mapper.annotation_reader"
                 class="LogicItLab\Salesforce\MapperBundle\Annotation\AnnotationReader">
            <argument type="service" id="annotation_reader"/>
        </service>

        <service id="logicitlab_salesforce_mapper.file_cache"
                 class="LogicItLab\Salesforce\MapperBundle\Cache\FileCache">
            <argument>%kernel.cache_dir%/salesforce</argument>
        </service>
    </services>
</container>