From b63227733920d45bb896341afa5ac03efb411c87 Mon Sep 17 00:00:00 2001 From: Oleksii Skorobogatko Date: Sat, 31 Aug 2024 21:18:55 +0300 Subject: [PATCH] #4 console command to get registered subscriber notifications --- .../SubscriberNotificationsCommand.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/Command/SubscriberNotificationsCommand.php diff --git a/src/Command/SubscriberNotificationsCommand.php b/src/Command/SubscriberNotificationsCommand.php new file mode 100644 index 0000000..77fd03a --- /dev/null +++ b/src/Command/SubscriberNotificationsCommand.php @@ -0,0 +1,39 @@ +handlerCollection->getHandlerTypes(); + + if ($handlerTypes) { + $io->title('Notification handlers:'); + $io->block($handlerTypes); + } else { + $io->warning('No subscriber notification handlers found.'); + } + + return Command::SUCCESS; + } +}