SoapServer::handle() has to be compatible with \SoapServer

This commit is contained in:
Petr Bechyně 2016-11-09 12:08:32 +01:00
parent 5fbcfb3e22
commit bd1fbf9cfc
1 changed files with 7 additions and 8 deletions

View File

@ -22,6 +22,7 @@ use BeSimple\SoapCommon\Storage\RequestHandlerAttachmentsStorage;
use BeSimple\SoapServer\SoapOptions\SoapServerOptions; use BeSimple\SoapServer\SoapOptions\SoapServerOptions;
use BeSimple\SoapCommon\Converter\MtomTypeConverter; use BeSimple\SoapCommon\Converter\MtomTypeConverter;
use BeSimple\SoapCommon\Converter\SwaTypeConverter; use BeSimple\SoapCommon\Converter\SwaTypeConverter;
use Exception;
use InvalidArgumentException; use InvalidArgumentException;
/** /**
@ -62,16 +63,14 @@ class SoapServer extends \SoapServer
/** /**
* Custom handle method to be able to modify the SOAP messages. * Custom handle method to be able to modify the SOAP messages.
* *
* @deprecated Please, use createRequest + handleRequest methods * @deprecated
* @param string $requestUrl * @param string $request Request string
* @param string $soapAction * @return string
* @param string $requestContent = null
* @return string|false
*/ */
public function handle($requestUrl, $soapAction, $requestContent = null) public function handle($request = null)
{ {
return $this->handleRequest( throw new Exception(
$this->createRequest($requestUrl, $soapAction, $requestContent) 'The handle method is now deprecated, because it accesses $_SERVER, $_POST. Use handleRequest instead'
); );
} }