public function publishChangesOf(ProcessingConfig $processingConfig) { foreach ($processingConfig->popRecordedEvents() as $recordedEvent) { $this->eventBus->dispatch($recordedEvent); } }