[SoapBundle] Added services_classmap node configuration

This commit is contained in:
Francis Besset 2013-07-22 15:50:28 +02:00
parent 232b678552
commit be1e80799c
2 changed files with 14 additions and 0 deletions

View File

@ -57,6 +57,11 @@ class BeSimpleSoapExtension extends Extension
$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) {
$serviceConfig['name'] = $name;
$this->createWebServiceContext($serviceConfig, $container);

View File

@ -97,6 +97,8 @@ class Configuration
{
$rootNode
->children()
// "services" section
->arrayNode('services')
->useAttributeAsKey('name')
->prototype('array')
@ -120,6 +122,13 @@ class Configuration
->end()
->end()
->end()
// "services_classmap" section
->arrayNode('services_classmap')
->useAttributeAsKey('name')
->prototype('scalar')->end()
->end()
->end()
->end()
;
}