Skip to content

Commit

Permalink
rename to shared
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Apr 12, 2024
1 parent 0b50429 commit 24233ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/Actions/Photo/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private function handleStandalone(InitDTO $initDTO): Photo
Shared\Save::class,
Standalone\CreateOriginalSizeVariant::class,
Standalone\CreateSizeVariants::class,
Standalone\UploadSizeVariantsToS3::class,
Shared\UploadSizeVariantsToS3::class,
];

return $this->executePipeOnDTO($pipes, $dto)->getPhoto();
Expand Down Expand Up @@ -245,6 +245,7 @@ private function handlePhotoLivePartner(InitDTO $initDTO): Photo
Shared\Save::class,
Standalone\CreateOriginalSizeVariant::class,
Standalone\CreateSizeVariants::class,
Shared\UploadSizeVariantsToS3::class,
];
$standAloneDto = $this->executePipeOnDTO($standAlonePipes, $standAloneDto);

Expand Down Expand Up @@ -273,7 +274,6 @@ private function handlePhotoLivePartner(InitDTO $initDTO): Photo
PhotoPartner\SetOldChecksum::class,
PhotoPartner\DeleteOldVideoPartner::class,
Shared\Save::class,
Standalone\UploadSizeVariantsToS3::class,
];

return $this->executePipeOnDTO($finalize, $finalizeDTO)->getPhoto();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace App\Actions\Photo\Pipes\Standalone;
namespace App\Actions\Photo\Pipes\Shared;

use App\Assets\Features;
use App\Contracts\PhotoCreate\StandalonePipe;
use App\DTO\PhotoCreate\StandaloneDTO;
use App\Contracts\PhotoCreate\PhotoDTO;
use App\Contracts\PhotoCreate\PhotoPipe;
use App\Jobs\UploadSizeVariantToS3Job;
use App\Models\Configs;
use App\Models\SizeVariant;
Expand All @@ -14,9 +14,9 @@
* Note that we first create the job, then we dispatch it.
* This allows to manage the queue properly and see it in the feedback.
*/
class UploadSizeVariantsToS3 implements StandalonePipe
class UploadSizeVariantsToS3 implements PhotoPipe
{
public function handle(StandaloneDTO $state, \Closure $next): StandaloneDTO
public function handle(PhotoDTO $state, \Closure $next): PhotoDTO
{
if (Features::active('use-s3')) {
$sync = Configs::getValueAsBool('use_job_queues');
Expand Down

0 comments on commit 24233ed

Please sign in to comment.