Skip to content

Commit e030393

Browse files
authored
Merge pull request #406 from GrahamCampbell/patch-1
Allow access to the plugin methods
2 parents a96054b + ddcd7b4 commit e030393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public function setEnterpriseUrl($enterpriseUrl)
313313
*
314314
* @param Plugin $plugin
315315
*/
316-
protected function addPlugin(Plugin $plugin)
316+
public function addPlugin(Plugin $plugin)
317317
{
318318
$this->plugins[] = $plugin;
319319
$this->httpClientModified = true;
@@ -324,7 +324,7 @@ protected function addPlugin(Plugin $plugin)
324324
*
325325
* @param string $fqcn
326326
*/
327-
protected function removePlugin($fqcn)
327+
public function removePlugin($fqcn)
328328
{
329329
foreach ($this->plugins as $idx => $plugin) {
330330
if ($plugin instanceof $fqcn) {

0 commit comments

Comments
 (0)