rename upload use cases
This commit is contained in:
parent
bd38e350cf
commit
d0810ba4b3
5 changed files with 12 additions and 12 deletions
|
|
@ -16,8 +16,8 @@ class UpdateElement
|
|||
private UpdateRichText $updateRichText,
|
||||
private UpdatePdfPath $updatePdfPath,
|
||||
private UpdateYoutubeUrl $updateYoutubeUrl,
|
||||
private UpdateElementIconImage $updateElementIconImage,
|
||||
private UpdateElementPdf $updateElementPdf,
|
||||
private UpdateIconImage $updateIconImage,
|
||||
private UpdatePdf $updatePdf,
|
||||
private ElementRepository $elementRepository,
|
||||
) {
|
||||
}
|
||||
|
|
@ -83,8 +83,8 @@ class UpdateElement
|
|||
));
|
||||
}
|
||||
if ($request->iconImageContents !== null) {
|
||||
$this->updateElementIconImage->execute(
|
||||
new UpdateElementIconImageRequest(
|
||||
$this->updateIconImage->execute(
|
||||
new UpdateIconImageRequest(
|
||||
id: $request->id,
|
||||
iconImageContents: $request->iconImageContents,
|
||||
iconImageOriginalName: $request->iconImageOriginalName,
|
||||
|
|
@ -94,8 +94,8 @@ class UpdateElement
|
|||
);
|
||||
}
|
||||
if ($request->pdfContents !== null) {
|
||||
$this->updateElementPdf->execute(
|
||||
new UpdateElementPdfRequest(
|
||||
$this->updatePdf->execute(
|
||||
new UpdatePdfRequest(
|
||||
id: $request->id,
|
||||
pdfContents: $request->pdfContents,
|
||||
pdfOriginalName: $request->pdfOriginalName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue