code: public function fire(AbstractUserEvent $event)
      {
          $status = null;
  
          $type = $event::getEntityName();
          if (isset($this->events[$type])) {
              $queue = $this->events[$type];
              $status = $this->fireQueue($queue, $event);
          }
  
          $eventName = $event->getName();
          if (isset($this->events[$eventName])) {
              $queue = $this->events[$eventName];
              $status = $this->fireQueue($queue, $event);
          }
  
          return $status;
      }
docs: Fires an event in the events manager causing the active listeners to be notified about it.
  
  @param AbstractUserEvent $event
  @return mixed|null