comsave/salesforce-bundle

View on GitHub
src/Phpforce/SalesforceBundle/Resources/config/soap_client.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="phpforce.soap_client" class="Phpforce\SoapClient\Client">
            <factory service="phpforce.soap_client.builder" method="build" />
        </service>
        
        <service id="phpforce.soap_client.bulk_saver"
                 class="Phpforce\SoapClient\BulkSaver">
            <argument type="service" id="phpforce.soap_client" />
        </service>

        <service id="phpforce.soap_client.builder"
                 class="Phpforce\SoapClient\ClientBuilder">
            <argument>%phpforce.soap_client.wsdl%</argument>
            <argument>%phpforce.soap_client.username%</argument>
            <argument>%phpforce.soap_client.password%</argument>
            <argument>%phpforce.soap_client.token%</argument>
            <argument type="collection">
            </argument>
            <argument>%kernel.environment%</argument>
        </service>

    </services>

</container>