SoapServerFactory no longer depends on dumper interface
This commit is contained in:
parent
aa1dfdf0f8
commit
b40a1b1efd
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user