Elastification PHP Client API
Class

Elastification\Client\Transport\HttpGuzzle\GuzzleTransport

class GuzzleTransport implements TransportInterface

Methods

__construct(ClientInterface $guzzleClient)

TransportRequestInterface createRequest(string $httpMethod)

TransportResponseInterface send(TransportRequestInterface $request)

Details

at line 39
public __construct(ClientInterface $guzzleClient)

Parameters

ClientInterface $guzzleClient

at line 50
public TransportRequestInterface createRequest(string $httpMethod)

Parameters

string $httpMethod The http method to use.

Return Value

TransportRequestInterface

at line 62
public TransportResponseInterface send(TransportRequestInterface $request)

Parameters

TransportRequestInterface $request The configured request to send.

Return Value

TransportResponseInterface

Exceptions

ClientException