public function dispatch(string $event, ...$parameters) : void
    {
        foreach ($this->getListeners($event) as $listener) {
            if ($listener(...$parameters) === false) {
                break;
            }
        }
    }