POLLING_REQUEST
POLLING_REQUEST = 'curl_multi.polling_request'
Interface for sending a pool of {@see RequestInterface} objects in parallel
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