$eventDispatcher
$eventDispatcher : \Symfony\Component\EventDispatcher\EventDispatcherInterface
Apply a callback to the contents of a {@see ResourceIteratorInterface}
$eventDispatcher : \Symfony\Component\EventDispatcher\EventDispatcherInterface
$iterator : \Guzzle\Service\Resource\ResourceIteratorInterface
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 |
__construct(\Guzzle\Service\Resource\ResourceIteratorInterface $iterator, array|callable $callback)
| \Guzzle\Service\Resource\ResourceIteratorInterface | $iterator | Resource iterator to apply a callback to |
| array|callable | $callback | Callback method accepting the resource iterator and an array of the iterator's current resources |