src/Driver/BlueimpBaseHandler.php 1 location
|
@@ 184-191 (lines=8) @@
|
| 181 |
|
* |
| 182 |
|
* @return \Symfony\Component\HttpFoundation\Response |
| 183 |
|
*/ |
| 184 |
|
public function delete(Request $request, StorageConfig $config): Response |
| 185 |
|
{ |
| 186 |
|
$filename = $request->post($this->fileParam); |
| 187 |
|
$path = $config->getMergedDirectory() . '/' . $filename; |
| 188 |
|
Storage::disk($config->getDisk())->delete($path); |
| 189 |
|
|
| 190 |
|
return new Response(); |
| 191 |
|
} |
| 192 |
|
} |
| 193 |
|
|
src/Driver/MonolithBaseHandler.php 1 location
|
@@ 95-103 (lines=9) @@
|
| 92 |
|
* |
| 93 |
|
* @return \Symfony\Component\HttpFoundation\Response |
| 94 |
|
*/ |
| 95 |
|
public function delete(Request $request, StorageConfig $config): Response |
| 96 |
|
{ |
| 97 |
|
$filename = $request->post($this->fileParam, $request->route($this->fileParam)); |
| 98 |
|
|
| 99 |
|
$path = $config->getMergedDirectory() . '/' . $filename; |
| 100 |
|
Storage::disk($config->getDisk())->delete($path); |
| 101 |
|
|
| 102 |
|
return new Response(); |
| 103 |
|
} |
| 104 |
|
} |
| 105 |
|
|