Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
1fa5c8a15e | |||
813dd52d70 | |||
8a40d23a94 |
@ -26,7 +26,7 @@
|
||||
"ass/xmlsecurity": "~1.0",
|
||||
"symfony/framework-bundle": "~3.4|~4.0",
|
||||
"symfony/twig-bundle": "~3.4|~4.0",
|
||||
"zendframework/zend-mime": "2.1.*"
|
||||
"laminas/laminas-mime": "~2.1"
|
||||
},
|
||||
"replace": {
|
||||
"besimple/soap-bundle": "self.version",
|
||||
|
@ -152,11 +152,12 @@ class BeSimpleSoapExtension extends Extension
|
||||
$definition = new ChildDefinition('besimple.soap.client');
|
||||
$container->setDefinition(sprintf('besimple.soap.client.%s', $client), $definition);
|
||||
|
||||
if (3 === Kernel::MAJOR_VERSION) {
|
||||
if (Kernel::MAJOR_VERSION >= 3) {
|
||||
$definition->setFactory(array(
|
||||
new Reference(sprintf('besimple.soap.client.builder.%s', $client)),
|
||||
'build'
|
||||
));
|
||||
$definition->setPublic(true);
|
||||
} else {
|
||||
$definition->setFactoryService(sprintf('besimple.soap.client.builder.%s', $client));
|
||||
}
|
||||
|
@ -19,7 +19,9 @@
|
||||
<argument type="service" id="besimple.soap.cache" /> <!-- hack to load besimple cache configuration -->
|
||||
</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" />
|
||||
</services>
|
||||
|
@ -12,7 +12,7 @@ namespace BeSimple\SoapBundle\Soap;
|
||||
|
||||
use BeSimple\SoapBundle\Util\Collection;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Zend\Mime\Message;
|
||||
use Laminas\Mime\Message;
|
||||
|
||||
/**
|
||||
* SoapRequest.
|
||||
|
Loading…
x
Reference in New Issue
Block a user