src/Guzzle/Common/AbstractHasDispatcher.php 1 location
|
@@ 50-59 (lines=10) @@
|
| 47 |
|
/** |
| 48 |
|
* {@inheritdoc} |
| 49 |
|
*/ |
| 50 |
|
public function dispatch($eventName, array $context = array()) |
| 51 |
|
{ |
| 52 |
|
$dispatcher = $this->getEventDispatcher(); |
| 53 |
|
|
| 54 |
|
$event = new Event($context); |
| 55 |
|
$event->setEventDispatcher($dispatcher); |
| 56 |
|
$event->setName($eventName); |
| 57 |
|
|
| 58 |
|
return $dispatcher->dispatch($eventName, $event); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
/** |
| 62 |
|
* {@inheritdoc} |
src/Guzzle/Http/IoEmittingEntityBody.php 1 location
|
@@ 44-53 (lines=10) @@
|
| 41 |
|
return $this->eventDispatcher; |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
public function dispatch($eventName, array $context = array()) |
| 45 |
|
{ |
| 46 |
|
$dispatcher = $this->getEventDispatcher(); |
| 47 |
|
|
| 48 |
|
$event = new Event($context); |
| 49 |
|
$event->setEventDispatcher($dispatcher); |
| 50 |
|
$event->setName($eventName); |
| 51 |
|
|
| 52 |
|
return $dispatcher->dispatch($eventName, $event); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
/** |
| 56 |
|
* {@inheritdoc} |
src/Guzzle/Http/Message/Request.php 1 location
|
@@ 532-543 (lines=12) @@
|
| 529 |
|
return $this->eventDispatcher; |
| 530 |
|
} |
| 531 |
|
|
| 532 |
|
public function dispatch($eventName, array $context = array()) |
| 533 |
|
{ |
| 534 |
|
$context['request'] = $this; |
| 535 |
|
|
| 536 |
|
$dispatcher = $this->getEventDispatcher(); |
| 537 |
|
|
| 538 |
|
$event = new Event($context); |
| 539 |
|
$event->setEventDispatcher($dispatcher); |
| 540 |
|
$event->setName($eventName); |
| 541 |
|
|
| 542 |
|
return $dispatcher->dispatch($eventName, $event); |
| 543 |
|
} |
| 544 |
|
|
| 545 |
|
public function addSubscriber(EventSubscriberInterface $subscriber) |
| 546 |
|
{ |