diff --git a/src/BeSimple/SoapBundle/DependencyInjection/BeSimpleSoapExtension.php b/src/BeSimple/SoapBundle/DependencyInjection/BeSimpleSoapExtension.php index a0b8c51..4e2b47a 100644 --- a/src/BeSimple/SoapBundle/DependencyInjection/BeSimpleSoapExtension.php +++ b/src/BeSimple/SoapBundle/DependencyInjection/BeSimpleSoapExtension.php @@ -147,7 +147,10 @@ class BeSimpleSoapExtension extends Extension $definition = new DefinitionDecorator('besimple.soap.client'); $container->setDefinition(sprintf('besimple.soap.client.%s', $client), $definition); - $definition->setFactoryService(sprintf('besimple.soap.client.builder.%s', $client)); + $definition->setFactory(array( + new Reference(sprintf('besimple.soap.client.builder.%s', $client)), + 'build' + )); } private function createWebServiceContext(array $config, ContainerBuilder $container) diff --git a/src/BeSimple/SoapBundle/Resources/config/client.xml b/src/BeSimple/SoapBundle/Resources/config/client.xml index 0af3c34..b1e1d3e 100644 --- a/src/BeSimple/SoapBundle/Resources/config/client.xml +++ b/src/BeSimple/SoapBundle/Resources/config/client.xml @@ -19,7 +19,9 @@ - + + +