gui\Application::fire PHP Method

fire() public method

Fire an application event
public fire ( string $eventName ) : void
$eventName string Event Name
return void
    public function fire($eventName)
    {
        if (array_key_exists($eventName, $this->eventHandlers)) {
            foreach ($this->eventHandlers[$eventName] as $eventHandler) {
                $eventHandler();
            }
        }
    }