aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/AbstractHasDispatcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/AbstractHasDispatcher.php')
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/AbstractHasDispatcher.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/AbstractHasDispatcher.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/AbstractHasDispatcher.php
deleted file mode 100644
index d1e842b1cf5..00000000000
--- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Common/AbstractHasDispatcher.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?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;
- }
-}