code: protected function doPublish($eventName, $subscribers, Event $event)
      {
          foreach ($subscribers as $callable) {
              if ($event->isPropagationStopped()) {
                  break;
              }
              \call_user_func($callable, $event, $eventName, $this);
          }
      }
docs: Calls the subscribers of an event.
  
  @param string     $eventName   The name of the event to publish
  @param callable[] $subscribers The event subscribers
  @param Event      $event       The event object to pass to the subscribers
  
  @return void