public function replayHistory(EventDispatcher $eventDispatcher): void
    {
        $allEvents = $this->storageFacility->loadAllEvents();
        foreach ($allEvents as $rawEvent) {
            $eventDispatcher->dispatch($this->restoreEvent($rawEvent));
        }
    }