1 | <?php |
||
25 | class DownloadProcessor |
||
26 | { |
||
27 | /** |
||
28 | * @var DownloadResourceResolver |
||
29 | */ |
||
30 | private $downloadResourceResolver; |
||
31 | |||
32 | /** |
||
33 | * @var FileFactory |
||
34 | */ |
||
35 | private $fileFactory; |
||
36 | |||
37 | /** |
||
38 | * @var File |
||
39 | */ |
||
40 | private $file; |
||
41 | |||
42 | /** |
||
43 | * DownloadProcessor constructor. |
||
44 | * @param DownloadResourceResolver $downloadResourceResolver |
||
45 | * @param FileFactory $fileFactory |
||
46 | * @param File $file |
||
47 | */ |
||
48 | public function __construct( |
||
57 | |||
58 | /** |
||
59 | * @param AttachmentInterface $attachment |
||
60 | * @return void |
||
61 | * @throws FileSystemException |
||
62 | */ |
||
63 | public function processDownload(AttachmentInterface $attachment): void |
||
80 | |||
81 | /** |
||
82 | * @param AttachmentInterface $attachment |
||
83 | * @return string |
||
84 | * @throws FileSystemException |
||
85 | */ |
||
86 | private function readFile(AttachmentInterface $attachment): string |
||
95 | } |
||
96 |