1 | <?php |
||
7 | class SymfonyFileSystem implements FileSystem |
||
8 | { |
||
9 | /** @var FileSystemHelper; */ |
||
10 | private $filesystem; |
||
11 | |||
12 | public function __construct() |
||
16 | |||
17 | /** @throws \Symfony\Component\Filesystem\Exception\IOException If the file cannot be written to. */ |
||
18 | public function createTempFile($prefix, $content): string |
||
25 | |||
26 | private function dumpToFile(string $filePath, string $content): void |
||
34 | |||
35 | private function createTempName(string $prefix): string |
||
39 | |||
40 | /** @throws \Symfony\Component\Filesystem\Exception\IOException When removal fails */ |
||
41 | public function removeFile(string $filePath): void |
||
45 | } |
||
46 |