Renamed client cache_wsdl option to cache_type
This commit is contained in:
parent
2ea1704a1e
commit
b1da32bc97
|
@ -84,14 +84,14 @@ class BeSimpleSoapExtension extends Extension
|
||||||
|
|
||||||
$definition->replaceArgument(0, $options['wsdl']);
|
$definition->replaceArgument(0, $options['wsdl']);
|
||||||
|
|
||||||
if (isset($options['cache_wsdl'])) {
|
if (isset($options['cache_type'])) {
|
||||||
$options['cache_wsdl'] = $this->getCacheType($options['cache_wsdl']);
|
$options['cache_type'] = $this->getCacheType($options['cache_type']);
|
||||||
|
|
||||||
$defOptions = $container
|
$defOptions = $container
|
||||||
->getDefinition('besimple.soap.client')
|
->getDefinition('besimple.soap.client')
|
||||||
->getArgument(1);
|
->getArgument(1);
|
||||||
|
|
||||||
$defOptions['cache_wsdl'] = $options['cache_wsdl'];
|
$defOptions['cache_type'] = $options['cache_type'];
|
||||||
$definition->replaceArgument(1, $defOptions);
|
$definition->replaceArgument(1, $defOptions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ class Configuration
|
||||||
->scalarNode('wsdl')
|
->scalarNode('wsdl')
|
||||||
->isRequired()
|
->isRequired()
|
||||||
->end()
|
->end()
|
||||||
->scalarNode('cache_wsdl')
|
->scalarNode('cache_type')
|
||||||
->validate()
|
->validate()
|
||||||
->ifNotInArray($this->cacheTypes)
|
->ifNotInArray($this->cacheTypes)
|
||||||
->thenInvalid(sprintf('The cache type has to be either %s', implode(', ', $this->cacheTypes)))
|
->thenInvalid(sprintf('The cache type has to be either %s', implode(', ', $this->cacheTypes)))
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<argument>wsdl</argument>
|
<argument>wsdl</argument>
|
||||||
<argument type="collection">
|
<argument type="collection">
|
||||||
<argument key="debug">%kernel.debug%</argument>
|
<argument key="debug">%kernel.debug%</argument>
|
||||||
<argument key="cache_wsdl">null</argument>
|
<argument key="cache_type">null</argument>
|
||||||
</argument>
|
</argument>
|
||||||
<argument type="service" id="besimple.soap.cache" />
|
<argument type="service" id="besimple.soap.cache" />
|
||||||
</service>
|
</service>
|
||||||
|
|
Loading…
Reference in New Issue