cloggier
↑
/wp-content/plugins/updraftplus/vendor/guzzle/guzzle/src/Guzzle
marsupiataab
hypermuffing
cloggier
hypermuffing
marsupiataab
Exception/
cloggier
marsupiataab
AbstractHasDispatcher.php
1,195 B
cloggier
marsupiataab
Collection.php
11,534 B
cloggier
marsupiataab
composer.json
503 B
cloggier
marsupiataab
Event.php
1,064 B
cloggier
marsupiataab
FromConfigInterface.php
487 B
cloggier
marsupiataab
HasDispatcherInterface.php
1,358 B
cloggier
marsupiataab
ToArrayInterface.php
245 B
cloggier
marsupiataab
Version.php
641 B
cloggier
marsupiataab
<?php namespace Guzzle\Common; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * Class that holds an event dispatcher */ class AbstractHasDispatcher implements HasDispatcherInterface { /** @var EventDispatcherInterface */ protected $eventDispatcher; public static function getAllEvents() { return array(); } public function setEventDispatcher(EventDispatcherInterface $eventDispatcher) { $this->eventDispatcher = $eventDispatcher; return $this; } public function getEventDispatcher() { if (!$this->eventDispatcher) { $this->eventDispatcher = new EventDispatcher(); } return $this->eventDispatcher; } public function dispatch($eventName, array $context = array()) { return $this->getEventDispatcher()->dispatch($eventName, new Event($context)); } public function addSubscriber(EventSubscriberInterface $subscriber) { $this->getEventDispatcher()->addSubscriber($subscriber); return $this; } }
cloggier