src/Adapter/LocalStorage.php 1 location
|
@@ 214-223 (lines=10) @@
|
| 211 |
|
/** |
| 212 |
|
* {@inheritDoc} |
| 213 |
|
*/ |
| 214 |
|
public function copyToLocalTemporaryFile($path) |
| 215 |
|
{ |
| 216 |
|
$content = $this->read($path); |
| 217 |
|
$extension = pathinfo($path, PATHINFO_EXTENSION); |
| 218 |
|
$target = tempnam($this->localTmpDir, null) . '.' . $extension; |
| 219 |
|
|
| 220 |
|
file_put_contents($target, $content); |
| 221 |
|
|
| 222 |
|
return $target; |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
/** |
| 226 |
|
* {@inheritDoc} |
src/Adapter/AmazonS3.php 1 location
|
@@ 298-307 (lines=10) @@
|
| 295 |
|
/** |
| 296 |
|
* {@inheritDoc} |
| 297 |
|
*/ |
| 298 |
|
public function copyToLocalTemporaryFile($path) |
| 299 |
|
{ |
| 300 |
|
$content = $this->read($path); |
| 301 |
|
$extension = pathinfo($path, PATHINFO_EXTENSION); |
| 302 |
|
$target = tempnam($this->localTmpDir, null) . '.' . $extension; |
| 303 |
|
|
| 304 |
|
file_put_contents($target, $content); |
| 305 |
|
|
| 306 |
|
return $target; |
| 307 |
|
} |
| 308 |
|
|
| 309 |
|
/** |
| 310 |
|
* {@inheritDoc} |