ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
FileStreamConsumer.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
4
8
15{
16
24 private $resource;
25
26
34 {
35 $this->resource = $resource;
36 $this->storage_handler = $storage_handler;
37 }
38
39
40 public function getStream() : FileStream
41 {
42 $revision = $this->resource->getCurrentRevision();
43
44 return $this->storage_handler->getStream($revision);
45 }
46}
An exception for terminatinating execution or to throw for unit testing.
__construct(StorableResource $resource, StorageHandler $storage_handler)
DownloadConsumer constructor.