gui\Application::fire PHP Méthode

fire() public méthode

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