Fix notice: attribute soapClientOptions defined in Trait and Client class
This commit is contained in:
parent
d495f22413
commit
b9e36b4900
@ -123,6 +123,16 @@ class SoapClient extends \SoapClient
|
|||||||
return $this->performHttpSoapRequest($soapRequest);
|
return $this->performHttpSoapRequest($soapRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getSoapClientOptions()
|
||||||
|
{
|
||||||
|
return $this->soapClientOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function getSoapOptions()
|
||||||
|
{
|
||||||
|
return $this->soapOptions;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $location Location
|
* @param string $location Location
|
||||||
* @param string $action SOAP action
|
* @param string $action SOAP action
|
||||||
|
@ -4,12 +4,11 @@ namespace BeSimple\SoapClient;
|
|||||||
|
|
||||||
use BeSimple\SoapBundle\Soap\SoapAttachment;
|
use BeSimple\SoapBundle\Soap\SoapAttachment;
|
||||||
use BeSimple\SoapClient\SoapOptions\SoapClientOptions;
|
use BeSimple\SoapClient\SoapOptions\SoapClientOptions;
|
||||||
|
use BeSimple\SoapCommon\SoapOptions\SoapOptions;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
trait SoapClientNativeMethodsTrait
|
trait SoapClientNativeMethodsTrait
|
||||||
{
|
{
|
||||||
/** @var SoapClientOptions */
|
|
||||||
protected $soapClientOptions;
|
|
||||||
/** @var SoapAttachment[] */
|
/** @var SoapAttachment[] */
|
||||||
private $soapAttachmentsOnRequestStorage;
|
private $soapAttachmentsOnRequestStorage;
|
||||||
/** @var SoapResponse */
|
/** @var SoapResponse */
|
||||||
@ -36,6 +35,16 @@ trait SoapClientNativeMethodsTrait
|
|||||||
*/
|
*/
|
||||||
abstract protected function performSoapRequest($request, $location, $action, $version, array $soapAttachments = []);
|
abstract protected function performSoapRequest($request, $location, $action, $version, array $soapAttachments = []);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return SoapClientOptions
|
||||||
|
*/
|
||||||
|
abstract protected function getSoapClientOptions();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return SoapOptions
|
||||||
|
*/
|
||||||
|
abstract protected function getSoapOptions();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Avoid using __call directly, it's deprecated even in \SoapClient.
|
* Avoid using __call directly, it's deprecated even in \SoapClient.
|
||||||
*
|
*
|
||||||
@ -130,7 +139,7 @@ trait SoapClientNativeMethodsTrait
|
|||||||
|
|
||||||
private function checkTracing()
|
private function checkTracing()
|
||||||
{
|
{
|
||||||
if ($this->soapClientOptions->getTrace() === false) {
|
if ($this->getSoapClientOptions()->getTrace() === false) {
|
||||||
throw new Exception('SoapClientOptions tracing disabled, turn on trace attribute');
|
throw new Exception('SoapClientOptions tracing disabled, turn on trace attribute');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user