public function AbstractHasDispatcher::dispatch

Helper to dispatch Guzzle events and set the event name on the event

Parameters

string $eventName Name of the event to dispatch:

array $context Context of the event:

Overrides HasDispatcherInterface::dispatch

5 calls to AbstractHasDispatcher::dispatch()
Client::prepareRequest in drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php
Prepare a request to be sent from the Client by adding client specific behaviors and properties to the request.
CurlMulti::add in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php
Adds a request to a batch of requests to be sent in parallel.
CurlMulti::remove in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php
Remove a request from the pool.
CurlMulti::removeErroredRequest in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php
Remove a request that encountered an exception
CurlMulti::send in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php
Send a pool of {

File

drupal/core/vendor/guzzle/common/Guzzle/Common/AbstractHasDispatcher.php, line 52

Class

AbstractHasDispatcher
Class that holds an event dispatcher

Namespace

Guzzle\Common

Code

public function dispatch($eventName, array $context = array()) {
  $this
    ->getEventDispatcher()
    ->dispatch($eventName, new Event($context));
}