Skip to content

Commit

Permalink
Merge pull request #29 from gowrizrh/feature/registered-notifiers
Browse files Browse the repository at this point in the history
Get registered event sinks list
  • Loading branch information
gowrizrh authored Sep 17, 2024
2 parents 3867d59 + 5bc9e4c commit 99e40f1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Service/AsyncEvent/NotifierFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,12 @@ public function create(string $type): NotifierInterface

return $notifier;
}

/**
* @inheritDoc
*/
public function getSinks(): array
{
return array_keys($this->notifierClasses);
}
}
7 changes: 7 additions & 0 deletions Service/AsyncEvent/NotifierFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ interface NotifierFactoryInterface
* @return NotifierInterface
*/
public function create(string $type): NotifierInterface;

/**
* Get available event sinks
*
* @return string[]
*/
public function getSinks(): array;
}

0 comments on commit 99e40f1

Please sign in to comment.