Refatoring : Working state

This commit is contained in:
julien
2026-03-16 15:16:56 +01:00
parent 3ad3c3d0b7
commit aa00bec846
7 changed files with 16 additions and 43 deletions

View File

@@ -1,31 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Media;
use App\Media\Application\MediaApplicationService;
use App\Media\Infrastructure\LocalMediaStorage;
use App\Post\PostRepositoryInterface;
/**
* Pont de compatibilité : l'implémentation métier principale vit désormais dans
* App\Media\Application\MediaApplicationService.
*/
final class MediaService extends MediaApplicationService implements MediaServiceInterface
{
public function __construct(
MediaRepositoryInterface $mediaRepository,
PostRepositoryInterface $postRepository,
string $uploadDir,
string $uploadUrl,
int $maxSize,
) {
parent::__construct(
mediaRepository: $mediaRepository,
postRepository: $postRepository,
mediaStorage: new LocalMediaStorage($uploadDir),
uploadUrl: $uploadUrl,
maxSize: $maxSize,
);
}
}