Updated SoapClient definition

This commit is contained in:
Francis Besset 2011-10-08 12:41:47 +02:00
parent ec3866d5d1
commit 94a8a8fec1
2 changed files with 3 additions and 3 deletions

View File

@ -89,12 +89,12 @@ class BeSimpleSoapExtension extends Extension
$defOptions = $container
->getDefinition('besimple.soap.client')
->getArgument(2);
->getArgument(1);
$defOptions['cache_type'] = $options['cache_type'];
$defOptions['namespace'] = $options['namespace'];
$definition->replaceArgument(2, $defOptions);
$definition->replaceArgument(1, $defOptions);
}
}
}

View File

@ -10,12 +10,12 @@
<services>
<service id="besimple.soap.client" class="%besimple.soap.client.class%" abstract="true">
<argument /> <!-- wsdl URI -->
<argument type="service" id="besimple.soap.converter.collection" />
<argument type="collection">
<argument key="debug">%kernel.debug%</argument>
<argument key="cache_type">null</argument>
<argument key="namespace">null</argument>
</argument>
<argument type="service" id="besimple.soap.converter.collection" />
<argument type="service" id="besimple.soap.cache" />
</service>
</services>