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