public function __construct( private readonly FilesystemOperator
$filesystem,
private readonly EntityRepository
$fileRepository ) { } public function regenerateToken(Context
$context, string
$fileId): string
{ $token = ImportExportFileEntity::
generateAccessToken();
$this->fileRepository->
update( [['id' =>
$fileId, 'accessToken' =>
$token]],
$context );
return $token;
} public function createFileResponse(Context
$context, string
$fileId, string
$accessToken): Response
{