From a86c680263ed5335ccddacb2442ef1e73bfd6eba Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Wed, 20 Feb 2013 20:42:08 +0100 Subject: [PATCH] Fixed ComplexType strategy --- ServiceDefinition/Strategy/ComplexType.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ServiceDefinition/Strategy/ComplexType.php b/ServiceDefinition/Strategy/ComplexType.php index 9913619..c8df45f 100644 --- a/ServiceDefinition/Strategy/ComplexType.php +++ b/ServiceDefinition/Strategy/ComplexType.php @@ -1,8 +1,10 @@ + * (c) Francis Besset * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. @@ -12,12 +14,12 @@ namespace BeSimple\SoapBundle\ServiceDefinition\Strategy; use BeSimple\SoapBundle\ServiceDefinition\Loader\AnnotationComplexTypeLoader; use Zend\Soap\Wsdl; -use Zend\Soap\Wsdl\Strategy\AbstractStrategy; +use Zend\Soap\Wsdl\ComplexTypeStrategy\AbstractComplexTypeStrategy; /** * @author Francis Besset */ -class ComplexType extends AbstractStrategy +class ComplexType extends AbstractComplexTypeStrategy { private $loader; private $definition; @@ -46,7 +48,7 @@ class ComplexType extends AbstractStrategy throw new \InvalidArgumentException(sprintf('Cannot add a complex type "%s" that is not an object or where class could not be found in "ComplexType" strategy.', $type)); } - $dom = $this->getContext()->toDomDocument(); + $dom = $this->getContext()->toDomDocument(); $soapTypeName = $this->getContext()->translateType($type); $soapType = 'tns:'.$soapTypeName; @@ -83,4 +85,4 @@ class ComplexType extends AbstractStrategy return $soapType; } -} \ No newline at end of file +}