Total Complexity | 7 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | final class GaufretteStorage extends AbstractStorage |
||
17 | { |
||
18 | private $filesystems; |
||
19 | |||
20 | public function __construct(Types $types, Keys $keys, FilesystemMap $filesystems) |
||
21 | { |
||
22 | parent::__construct($types, $keys); |
||
23 | |||
24 | $this->filesystems = $filesystems; |
||
25 | } |
||
26 | |||
27 | protected function readFile(File $file): string |
||
33 | ; |
||
34 | } |
||
35 | |||
36 | protected function streamFile(File $file) |
||
37 | { |
||
38 | return fopen('gaufrette://' . $file->storage() . '/' . $file->key(), 'rb'); |
||
|
|||
39 | } |
||
40 | |||
41 | protected function deleteFile(File $file): void |
||
46 | ; |
||
47 | } |
||
48 | |||
49 | protected function writeFile(string $key, string $storage, $stream): void |
||
62 | } |
||
63 | } |
||
65 |