We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b680e8 + 1bb5ba7 commit d328b43Copy full SHA for d328b43
lib/Github/HttpClient/HttpClient.php
@@ -11,6 +11,7 @@
11
use Github\Exception\RuntimeException;
12
use Github\HttpClient\Listener\AuthListener;
13
use Github\HttpClient\Listener\ErrorListener;
14
+use Symfony\Component\EventDispatcher\EventSubscriberInterface;
15
16
/**
17
* Performs requests on GitHub API. API documentation should be self-explanatory.
@@ -82,6 +83,11 @@ public function addListener($eventName, $listener)
82
83
$this->client->getEventDispatcher()->addListener($eventName, $listener);
84
}
85
86
+ public function addSubscriber(EventSubscriberInterface $subscriber)
87
+ {
88
+ $this->client->addSubscriber($subscriber);
89
+ }
90
+
91
92
* {@inheritDoc}
93
*/
0 commit comments