diff --git a/src/Facades/Soap.php b/src/Facades/Soap.php index 299150a..53107a6 100644 --- a/src/Facades/Soap.php +++ b/src/Facades/Soap.php @@ -12,7 +12,7 @@ * @method static \CodeDredd\Soap\SoapClient stub(callable $callback) * @method static \CodeDredd\Soap\SoapClient buildClient(string $setup = '') * @method static \CodeDredd\Soap\SoapClient byConfig(string $setup = '') - * @method static \CodeDredd\Soap\SoapClient options(array $options) + * @method static \CodeDredd\Soap\SoapClient withOptions(array $options) * @method static \CodeDredd\Soap\SoapClient handlerOptions(array $options) * @method static \CodeDredd\Soap\SoapClient withWsse(array $config) * @method static \CodeDredd\Soap\SoapClient withWsa() diff --git a/src/SoapClient.php b/src/SoapClient.php index 248a6bb..9c169dc 100644 --- a/src/SoapClient.php +++ b/src/SoapClient.php @@ -8,8 +8,8 @@ use CodeDredd\Soap\Exceptions\NotFoundConfigurationException; use CodeDredd\Soap\Exceptions\SoapException; use CodeDredd\Soap\Middleware\WsseMiddleware; +use GuzzleHttp\Client; use GuzzleHttp\HandlerStack; -use Http\Adapter\Guzzle7\Client; use Http\Client\Exception\HttpException; use Illuminate\Contracts\Validation\Validator; use Illuminate\Support\Str; @@ -132,7 +132,7 @@ function (Request $request, array $options) { protected function setHandler(HandlerInterface $handler = null) { $this->handler = $handler ?? HttPlugHandle::createForClient( - Client::createWithConfig($this->handlerOptions) + new Client($this->handlerOptions) ); $this->addMiddleware(); diff --git a/src/SoapFactory.php b/src/SoapFactory.php index 4607da5..dcf8637 100644 --- a/src/SoapFactory.php +++ b/src/SoapFactory.php @@ -3,9 +3,8 @@ namespace CodeDredd\Soap; use Closure; -use CodeDredd\Soap\Client\Request; use CodeDredd\Soap\Client\ResponseSequence; -use function GuzzleHttp\Promise\promise_for; +use GuzzleHttp\Promise\Create; use GuzzleHttp\Psr7\Response as Psr7Response; use Illuminate\Support\Str; use Illuminate\Support\Traits\Macroable; @@ -216,7 +215,7 @@ public static function response($body = null, $status = 200, $headers = []) ]); } - return promise_for(new Psr7Response($status, $headers, $body)); + return Create::promiseFor(new Psr7Response($status, $headers, $body)); } /**