diff --git a/Service/AsyncEvent/NotifierFactory.php b/Service/AsyncEvent/NotifierFactory.php index be00ffd..a45375a 100644 --- a/Service/AsyncEvent/NotifierFactory.php +++ b/Service/AsyncEvent/NotifierFactory.php @@ -30,4 +30,12 @@ public function create(string $type): NotifierInterface return $notifier; } + + /** + * @inheritDoc + */ + public function getSinks(): array + { + return array_keys($this->notifierClasses); + } } diff --git a/Service/AsyncEvent/NotifierFactoryInterface.php b/Service/AsyncEvent/NotifierFactoryInterface.php index 58435ae..5d43bb1 100644 --- a/Service/AsyncEvent/NotifierFactoryInterface.php +++ b/Service/AsyncEvent/NotifierFactoryInterface.php @@ -13,4 +13,11 @@ interface NotifierFactoryInterface * @return NotifierInterface */ public function create(string $type): NotifierInterface; + + /** + * Get available event sinks + * + * @return string[] + */ + public function getSinks(): array; }