From b40a1b1efd9ae277f2851e070bf4a858d1a55adf Mon Sep 17 00:00:00 2001 From: Christian Kerl Date: Thu, 7 Apr 2011 21:52:59 +0200 Subject: [PATCH] SoapServerFactory no longer depends on dumper interface --- Soap/SoapServerFactory.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Soap/SoapServerFactory.php b/Soap/SoapServerFactory.php index 983a07c..27cc588 100644 --- a/Soap/SoapServerFactory.php +++ b/Soap/SoapServerFactory.php @@ -30,21 +30,19 @@ class SoapServerFactory { private $definition; private $converters; - private $dumper; + private $wsdlFile; - public function __construct(ServiceDefinition $definition, ConverterRepository $converters, FileDumper $dumper) + public function __construct(ServiceDefinition $definition, $wsdlFile, ConverterRepository $converters) { $this->definition = $definition; + $this->wsdlFile = $wsdlFile; $this->converters = $converters; - $this->dumper = $dumper; } public function create(&$request, &$response) { - $file = $this->dumper->dumpServiceDefinition($this->definition); - $server = new \SoapServer( - $file, + $this->wsdlFile, array( 'classmap' => $this->createSoapServerClassmap(), 'typemap' => $this->createSoapServerTypemap($request, $response),