- Added PublicS3Disk and PrivateS3Disk classes for S3 disk management. - Updated ProductController and RecipeController to utilize PublicS3Disk for file uploads. - Modified MediaController to redirect to S3 URLs. - Enhanced migration script to support file migration to new S3 structure. - Updated filesystem and storage service configurations for public/private S3 disks.
19 lines
314 B
PHP
19 lines
314 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Lib;
|
|
|
|
use Uwil\Storage\Lib\ValueObjects\DiskName;
|
|
|
|
final readonly class PrivateS3Disk
|
|
{
|
|
public const DISK_NAME = 's3-private';
|
|
|
|
public DiskName $disk;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->disk = new DiskName(self::DISK_NAME, 's3');
|
|
}
|
|
}
|