Compare commits

..

3 Commits

4 changed files with 7 additions and 4 deletions

View File

@ -26,7 +26,7 @@
"ass/xmlsecurity": "~1.0", "ass/xmlsecurity": "~1.0",
"symfony/framework-bundle": "~3.4|~4.0", "symfony/framework-bundle": "~3.4|~4.0",
"symfony/twig-bundle": "~3.4|~4.0", "symfony/twig-bundle": "~3.4|~4.0",
"zendframework/zend-mime": "2.1.*" "laminas/laminas-mime": "~2.1"
}, },
"replace": { "replace": {
"besimple/soap-bundle": "self.version", "besimple/soap-bundle": "self.version",

View File

@ -152,11 +152,12 @@ class BeSimpleSoapExtension extends Extension
$definition = new ChildDefinition('besimple.soap.client'); $definition = new ChildDefinition('besimple.soap.client');
$container->setDefinition(sprintf('besimple.soap.client.%s', $client), $definition); $container->setDefinition(sprintf('besimple.soap.client.%s', $client), $definition);
if (3 === Kernel::MAJOR_VERSION) { if (Kernel::MAJOR_VERSION >= 3) {
$definition->setFactory(array( $definition->setFactory(array(
new Reference(sprintf('besimple.soap.client.builder.%s', $client)), new Reference(sprintf('besimple.soap.client.builder.%s', $client)),
'build' 'build'
)); ));
$definition->setPublic(true);
} else { } else {
$definition->setFactoryService(sprintf('besimple.soap.client.builder.%s', $client)); $definition->setFactoryService(sprintf('besimple.soap.client.builder.%s', $client));
} }

View File

@ -19,7 +19,9 @@
<argument type="service" id="besimple.soap.cache" /> <!-- hack to load besimple cache configuration --> <argument type="service" id="besimple.soap.cache" /> <!-- hack to load besimple cache configuration -->
</service> </service>
<service id="besimple.soap.client" factory-service="besimple.soap.client.builder" factory-method="build" class="%besimple.soap.client.builder.class%" abstract="true" /> <service id="besimple.soap.client" class="%besimple.soap.client.builder.class%" abstract="true">
<factory service="besimple.soap.client.builder" method="build" />
</service>
<service id="besimple.soap.classmap" class="%besimple.soap.classmap.class%" abstract="true" /> <service id="besimple.soap.classmap" class="%besimple.soap.classmap.class%" abstract="true" />
</services> </services>

View File

@ -12,7 +12,7 @@ namespace BeSimple\SoapBundle\Soap;
use BeSimple\SoapBundle\Util\Collection; use BeSimple\SoapBundle\Util\Collection;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Zend\Mime\Message; use Laminas\Mime\Message;
/** /**
* SoapRequest. * SoapRequest.