/**
  * @param InitializeEventStore $command
  */
 public function handle(InitializeEventStore $command)
 {
     $esConfig = EventStoreConfig::initializeWithSqliteDb($command->sqliteDbFile(), $command->eventStoreConfigLocation(), $this->configWriter);
     foreach ($esConfig->popRecordedEvents() as $recordedEvent) {
         $this->eventBus->dispatch($recordedEvent);
     }
 }