Added namespace option in client definition
This commit is contained in:
parent
4e33819eca
commit
294058a59c
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue