publishNotifications() public method

public publishNotifications ( $exchangeName ) : integer
return integer
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $app = $this->getApplication()->getContainer();
     $notificationService = new NotificationService($app['event_store'], $app['message_tracker'], $app['message_producer']);
     $numberOfNotifications = $notificationService->publishNotifications($input->getArgument('exchange-name'));
     $output->writeln(sprintf('<comment>%d</comment> <info>notification(s) sent!</info>', $numberOfNotifications));
 }