Fire an event from a sender object

@param string $event
@param object $sender
@param array $arguments optional.
160532
public function fireOff(string $event, $sender, array $arguments = null) {
        return $this->getEventManager()->fireOff($event, $sender, $arguments);
    }
301591
public function emit(string $event, ...$args)
    {
        if ($this->_events[$event] ?? false) {

            foreach ($this->_events[$event] as $handler) {

                $handler(...$args);
            }
        }

        return $this;
    }
236916
public function emit($event, $args=null)
    {
        if (is_array($this->listeners)){
            foreach($this->listeners as $reg_exp => $listers_of_event){
                if (preg_match($reg_exp,$event)){
                    foreach ($listers_of_event as $listener){
                        call_user_func($listener,$args,$event);
                    }
                }
            }
        }
    }
881
protected function raise($event)
    {
        $qualified = get_class($event);
        $name = str_replace('\\', '.', $qualified);

        $this->events->fire($name, [$event]);
    }
132089
protected function triggerEvent($event, $source = null, $data = null) {
		$this->getEventsManager()->trigger($event, $source, $data);
	}
1241048
public function _fire($event, $args = array())
    {
        Log::d("Event " . $event, array('events'));
        global $context;
        $buffer = array();
        if (!is_array($args)) {
            $args = array($args);
        }
        if (isset($this->handlers[$event]) && count($this->handlers[$event]) > 0) {
            $handlers = $this->handlers[$event];
            foreach ($handlers as $item) {
                $result = $item->run($args);
                if ($result === true) {
                    return true;
                }
                $buffer[] = $result;
            }
            return $buffer;
        }
        return 0;
    }
1039764
public function emit($event, array $arguments = [])
    {
        parent::emit($event, $arguments);
        if ($this->broker) {
            $this->broker->emit($event, $arguments);
        }
    }
287901
public function invokeCallbacks($event, $arg)
    {
        $this->checkEventType($event);
        foreach ($this->events[$event] as $callback) {
            call_user_func($callback, $arg);
        }
    }
849947
protected function callProtocolMethod(string $event, ...$parameters)
    {
        if (method_exists($this->protocol, $event)) {
            call_user_func_array([$this->protocol, $event], $parameters);
        }
    }
260215
protected function notifyEvent($command, $arguments, $return, $time = 0)
    {
        if ($this->eventDispatcher) {
            $event = new $this->eventClass();
            $event->setCommand($command)
                  ->setArguments($arguments)
                  ->setReturn($return)
                  ->setExecutionTime($time);

            $this->eventDispatcher->dispatch('amqp.command', $event);
        }
    }
140087
protected function dispatchEventToEventHandler($event, $arguments)
    {
        if ($this->eventHandler == null || ! method_exists($this->eventHandler, $method = "on{$event}")) {
            return;
        }

        try {
            $this->eventHandler->$method(...$arguments);
        } catch (Exception $e) {
            $this->handleException($e);
        } catch (Throwable $e) {
            $this->handleException(new FatalThrowableError($e));
        }
    }
32270
public function Base_AfterReactions_Handler($Sender, $Args) {
      if (!$this->SocialReactions()) 
         return;
      
      echo Gdn_Theme::BulletItem('Share');
      $this->AddReactButton($Sender, $Args);
   }
703850
protected function fireEvent($event, $data)
    {
        $fireableEvent = isset($this->fireEvents[$event]) ? $this->fireEvents[$event] : null;

        if (! is_null($fireableEvent)) {
            return $this->event->fire($fireableEvent, $data);
        }

        return null;
    }
361629
public function fire(string $event, array $arguments = null) {
        return $this->getEventManager()->fire($event, $arguments);
    }
316921
protected function fireConnectionEvent($event)
	{
		if (isset($this->events))
		{
			$this->events->fire('connection.'.$this->getName().'.'.$event, $this);
		}
	}
830481
protected function fireEvent($event)
    {
        $this->app['events']->fire(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]);
    }
55475
public function fireReturn(string $event, array $arguments = null) {
        return $this->getEventManager()->fireReturn($event, $arguments);
    }