Refatoring : Working state
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user