19 declare(strict_types=1);
39 string $storage_base_path,
40 StorageHandlerFactory $storage_handler_factory
48 $stream = $this->storage_handler_factory->getHandlerForRevision($revision)->getStream($revision);
51 }
catch (FileNotFoundException) {
52 throw new \RuntimeException(
53 "Revision {$revision->getVersionNumber()} for Resource `{$revision->getIdentification()->serialize()}` not found in storage." 60 FileStream $file_stream,
63 return $flavour->withStreamResolver(
populateFlavour(Flavour $flavour, FileStream $file_stream, int $index)
__construct(string $storage_base_path, StorageHandlerFactory $storage_handler_factory)
StorageHandlerFactory $storage_handler_factory
populateRevision(Revision $revision)