From 855e382590651c19e91f661f0b995501e994c7fd Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Mon, 1 Jun 2015 16:04:29 +0200 Subject: [PATCH] [SoapBundle] Fixed service definition with factory --- .../SoapBundle/DependencyInjection/BeSimpleSoapExtension.php | 5 ++++- src/BeSimple/SoapBundle/Resources/config/client.xml | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) 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 @@ - + + +