Added namespace option in client definition

This commit is contained in:
Francis Besset 2011-09-04 23:43:20 +02:00
parent 4e33819eca
commit 294058a59c
3 changed files with 5 additions and 3 deletions

View File

@ -92,6 +92,8 @@ class BeSimpleSoapExtension extends Extension
->getArgument(1); ->getArgument(1);
$defOptions['cache_type'] = $options['cache_type']; $defOptions['cache_type'] = $options['cache_type'];
$defOptions['namespace'] = $options['namespace'];
$definition->replaceArgument(1, $defOptions); $definition->replaceArgument(1, $defOptions);
} }
} }

View File

@ -73,9 +73,8 @@ class Configuration
->useAttributeAsKey('name') ->useAttributeAsKey('name')
->prototype('array') ->prototype('array')
->children() ->children()
->scalarNode('wsdl') ->scalarNode('wsdl')->isRequired()->end()
->isRequired() ->scalarNode('namespace')->defaultNull()->end()
->end()
->scalarNode('cache_type') ->scalarNode('cache_type')
->validate() ->validate()
->ifNotInArray($this->cacheTypes) ->ifNotInArray($this->cacheTypes)

View File

@ -13,6 +13,7 @@
<argument type="collection"> <argument type="collection">
<argument key="debug">%kernel.debug%</argument> <argument key="debug">%kernel.debug%</argument>
<argument key="cache_type">null</argument> <argument key="cache_type">null</argument>
<argument key="namespace">null</argument>
</argument> </argument>
<argument type="service" id="besimple.soap.cache" /> <argument type="service" id="besimple.soap.cache" />
</service> </service>