$eventDispatcher
$eventDispatcher : \Symfony\Component\EventDispatcher\EventDispatcherInterface
Send {@see RequestInterface} objects in parallel using curl_multi
$eventDispatcher : \Symfony\Component\EventDispatcher\EventDispatcherInterface
setEventDispatcher(\Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher) : self
Set the EventDispatcher of the request
\Symfony\Component\EventDispatcher\EventDispatcherInterface | $eventDispatcher |
getEventDispatcher() : \Symfony\Component\EventDispatcher\EventDispatcherInterface
Get the EventDispatcher of the request
dispatch(string $eventName, array $context = array()) : \Guzzle\Common\Event
Helper to dispatch Guzzle events and set the event name on the event
string | $eventName | Name of the event to dispatch |
array | $context | Context of the event |
Returns the created event object
addSubscriber(\Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber) : self
Add an event subscriber to the dispatcher
\Symfony\Component\EventDispatcher\EventSubscriberInterface | $subscriber | Event subscriber |
add(\Guzzle\Http\Message\RequestInterface $request) : \Guzzle\Http\Curl\CurlMultiInterface
Add a request to the pool.
\Guzzle\Http\Message\RequestInterface | $request | Request to add |
remove(\Guzzle\Http\Message\RequestInterface $request) : boolean
Remove a request from the pool.
\Guzzle\Http\Message\RequestInterface | $request | Request to remove |
Returns true on success or false on failure
beforeSend(\Guzzle\Http\Message\RequestInterface $request)
Prepare for sending
\Guzzle\Http\Message\RequestInterface | $request | Request to prepare |
on error preparing the request
createCurlHandle(\Guzzle\Http\Message\RequestInterface $request) : \Guzzle\Http\Curl\CurlHandle
Create a curl handle for a request
\Guzzle\Http\Message\RequestInterface | $request | Request |
removeErroredRequest(\Guzzle\Http\Message\RequestInterface $request, \Exception $e = null)
Remove a request that encountered an exception
\Guzzle\Http\Message\RequestInterface | $request | Request to remove |
\Exception | $e | Exception encountered |
processResponse(\Guzzle\Http\Message\RequestInterface $request, \Guzzle\Http\Curl\CurlHandle $handle, array $curl)
Check for errors and fix headers of a request based on a curl response
\Guzzle\Http\Message\RequestInterface | $request | Request to process |
\Guzzle\Http\Curl\CurlHandle | $handle | Curl handle object |
array | $curl | Array returned from curl_multi_info_read |
on Curl error
removeHandle(\Guzzle\Http\Message\RequestInterface $request)
Remove a curl handle from the curl multi object
\Guzzle\Http\Message\RequestInterface | $request | Request that owns the handle |
addHandle(\Guzzle\Http\Message\RequestInterface $request)
\Guzzle\Http\Message\RequestInterface | $request |
isCurlException(\Guzzle\Http\Message\RequestInterface $request, \Guzzle\Http\Curl\CurlHandle $handle, array $curl) : \Guzzle\Http\Exception\CurlException|boolean
Check if a cURL transfer resulted in what should be an exception
\Guzzle\Http\Message\RequestInterface | $request | Request to check |
\Guzzle\Http\Curl\CurlHandle | $handle | Curl handle object |
array | $curl | Array returned from curl_multi_info_read |
validateResponseWasSet(\Guzzle\Http\Message\RequestInterface $request)
\Guzzle\Http\Message\RequestInterface | $request |