src/Eccube/Controller/Admin/Product/CsvImportController.php 1 location
|
@@ 617-626 (lines=10) @@
|
| 614 |
|
$this->entityManager->getConnection()->commit(); |
| 615 |
|
|
| 616 |
|
// 画像ファイルの削除(commit後に削除させる) |
| 617 |
|
foreach ($deleteImages as $images) { |
| 618 |
|
foreach ($images as $image) { |
| 619 |
|
try { |
| 620 |
|
$fs = new Filesystem(); |
| 621 |
|
$fs->remove($this->eccubeConfig['eccube_save_image_dir'].'/'.$image); |
| 622 |
|
} catch (\Exception $e) { |
| 623 |
|
// エラーが発生しても無視する |
| 624 |
|
} |
| 625 |
|
} |
| 626 |
|
} |
| 627 |
|
|
| 628 |
|
log_info('商品CSV登録完了'); |
| 629 |
|
$message = 'admin.common.csv_upload_complete'; |
src/Eccube/Controller/Admin/Product/ProductController.php 1 location
|
@@ 780-787 (lines=8) @@
|
| 777 |
|
$deleteImages = $event->getArgument('deleteImages'); |
| 778 |
|
|
| 779 |
|
// 画像ファイルの削除(commit後に削除させる) |
| 780 |
|
foreach ($deleteImages as $deleteImage) { |
| 781 |
|
try { |
| 782 |
|
$fs = new Filesystem(); |
| 783 |
|
$fs->remove($this->eccubeConfig['eccube_save_image_dir'].'/'.$deleteImage); |
| 784 |
|
} catch (\Exception $e) { |
| 785 |
|
// エラーが発生しても無視する |
| 786 |
|
} |
| 787 |
|
} |
| 788 |
|
|
| 789 |
|
log_info('商品削除完了', [$id]); |
| 790 |
|
|