class FileService extends AbstractFileService
{ private readonly CsvFileWriter
$writer;
/**
* @internal
*/
public function __construct( private readonly FilesystemOperator
$filesystem,
private readonly EntityRepository
$fileRepository ) { $this->writer =
new CsvFileWriter($filesystem);
} public function getDecorated(): AbstractFileService
{ throw new DecorationPatternException(self::
class);
} /**
* @throws FileNotReadableException
*/
public function storeFile(Context
$context, \DateTimeInterface
$expireDate, ?string
$sourcePath, ?string
$originalFileName, string
$activity, ?string
$path = null
): ImportExportFileEntity
{