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);
$defOptions['cache_type'] = $options['cache_type'];
$defOptions['namespace'] = $options['namespace'];
$definition->replaceArgument(1, $defOptions);
}
}

View File

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

View File

@ -13,6 +13,7 @@
<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.cache" />
</service>