Fixed DIC
This commit is contained in:
parent
51d1d28830
commit
581ebaf865
@ -58,13 +58,16 @@ class WebServiceExtension extends Extension
|
||||
$contextPrototype = $container->getDefinition('webservice.context');
|
||||
$contextPrototypeArguments = $contextPrototype->getArguments();
|
||||
|
||||
$contextId = 'webservice.context.' . $config['name'];
|
||||
$contextId = 'webservice.context.'.$config['name'];
|
||||
$context = $container->setDefinition($contextId, new DefinitionDecorator('webservice.context'));
|
||||
|
||||
$arguments = array();
|
||||
foreach($bindingDependentArguments as $idx) {
|
||||
$context->setArgument($idx, new Reference($contextPrototypeArguments[$idx] . $bindingSuffix));
|
||||
$arguments[] = new Reference($contextPrototypeArguments[$idx].$bindingSuffix);
|
||||
}
|
||||
$context->setArgument(5, array_merge($contextPrototypeArguments[5], $config));
|
||||
$arguments[5] = array_merge($contextPrototypeArguments[5], $config);
|
||||
|
||||
$context->setArguments($arguments);
|
||||
}
|
||||
|
||||
public function getNamespace()
|
||||
|
@ -54,11 +54,14 @@
|
||||
<service id="webservice.definition.loader.annot_class" class="Bundle\WebServiceBundle\ServiceDefinition\Loader\AnnotationClassLoader">
|
||||
<tag name="webservice.definition.loader" />
|
||||
<argument type="service" id="webservice.annotations.reader" />
|
||||
<argument type="service" id="annotations.configuration_reader" />
|
||||
<argument type="service" id="annotations.configuration_reader" on-invalid="null" />
|
||||
</service>
|
||||
|
||||
<service id="webservice.definition.dumper.wsdl.rpcliteral" class="Bundle\WebServiceBundle\ServiceDefinition\Dumper\WsdlDumper">
|
||||
<service id="webservice.definition.dumper.wsdl.rpcliteral" class="Bundle\WebServiceBundle\ServiceDefinition\Dumper\WsdlDumper" />
|
||||
|
||||
</service>
|
||||
<service id="webservice.definition.dumper.wsdl" alias="webservice.definition.dumper.wsdl.rpcliteral" />
|
||||
|
||||
<service id="webservice.binder.request" alias="webservice.binder.request.rpcliteral" />
|
||||
<service id="webservice.binder.response" alias="webservice.binder.response.rpcliteral" />
|
||||
</services>
|
||||
</container>
|
Loading…
Reference in New Issue
Block a user