/** * Load a aggregate snapshot from the storage. * * @param IdInterface $id * * @return Snapshot */ protected function loadSnapshot(IdInterface $id) { $applicationVersion = VersionManager::currentApplicationVersion(); $aggregateVersion = VersionManager::versionOfClass($this->aggregateClassName, $applicationVersion); return $this->snapshotStore->load($this->streamName(), $id, $aggregateVersion, $applicationVersion); }