@@ -15,7 +15,6 @@ |
||
15 | 15 | use Liip\ImagineBundle\Binary\FileBinaryInterface; |
16 | 16 | use Symfony\Component\Filesystem\Exception\IOException; |
17 | 17 | use Symfony\Component\Filesystem\Filesystem; |
18 | -use Symfony\Component\Process\Exception\ProcessFailedException; |
|
19 | 18 | use Symfony\Component\Process\Process; |
20 | 19 | |
21 | 20 | abstract class AbstractPostProcessor implements PostProcessorInterface |
@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | */ |
36 | 36 | private $filesystem; |
37 | 37 | |
38 | + /** |
|
39 | + * @param string|null $temporaryRootPath |
|
40 | + */ |
|
38 | 41 | public function __construct(string $executablePath, ?string $temporaryRootPath) |
39 | 42 | { |
40 | 43 | $this->executablePath = $executablePath; |
@@ -93,6 +96,9 @@ discard block |
||
93 | 96 | return $temporary; |
94 | 97 | } |
95 | 98 | |
99 | + /** |
|
100 | + * @param string $prefix |
|
101 | + */ |
|
96 | 102 | protected function acquireTemporaryFilePath(array $options, $prefix = null): string |
97 | 103 | { |
98 | 104 | $root = $options['temp_dir'] ?? $this->temporaryRootPath ?: sys_get_temp_dir(); |