[SoapBundle] Cleaned configuration
This commit is contained in:
parent
e765ea746e
commit
5aefca6be7
|
@ -57,11 +57,6 @@ class BeSimpleSoapExtension extends Extension
|
||||||
|
|
||||||
$container->setParameter('besimple.soap.definition.dumper.options.stylesheet', $config['wsdl_dumper']['stylesheet']);
|
$container->setParameter('besimple.soap.definition.dumper.options.stylesheet', $config['wsdl_dumper']['stylesheet']);
|
||||||
|
|
||||||
$container
|
|
||||||
->getDefinition('besimple.soap.server.classmap')
|
|
||||||
->addMethodCall('set', array($config['services_classmap']))
|
|
||||||
;
|
|
||||||
|
|
||||||
foreach($config['services'] as $name => $serviceConfig) {
|
foreach($config['services'] as $name => $serviceConfig) {
|
||||||
$serviceConfig['name'] = $name;
|
$serviceConfig['name'] = $name;
|
||||||
$this->createWebServiceContext($serviceConfig, $container);
|
$this->createWebServiceContext($serviceConfig, $container);
|
||||||
|
|
|
@ -97,8 +97,6 @@ class Configuration
|
||||||
{
|
{
|
||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
|
|
||||||
// "services" section
|
|
||||||
->arrayNode('services')
|
->arrayNode('services')
|
||||||
->useAttributeAsKey('name')
|
->useAttributeAsKey('name')
|
||||||
->prototype('array')
|
->prototype('array')
|
||||||
|
@ -122,13 +120,6 @@ class Configuration
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
|
|
||||||
// "services_classmap" section
|
|
||||||
->arrayNode('services_classmap')
|
|
||||||
->useAttributeAsKey('name')
|
|
||||||
->prototype('scalar')->end()
|
|
||||||
->end()
|
|
||||||
->end()
|
|
||||||
->end()
|
->end()
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,7 +133,7 @@ class ServiceDefinition
|
||||||
return isset($this->complexTypes[$type]);
|
return isset($this->complexTypes[$type]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addDefinitionComplexType($type, $definition)
|
public function addDefinitionComplexType($type, array $definition)
|
||||||
{
|
{
|
||||||
if ($this->hasDefinitionComplexType($type)) {
|
if ($this->hasDefinitionComplexType($type)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue