feat: dummy replacement pdf upload for environments other than prod

This commit is contained in:
Björn Fromme committed 2026-02-18 17:01:32 +01:00
1 parent d9fbd604ac
commit ab47a66745
12 files changed
+78 -16

No files matched your search

@@ -64,7 +64,7 @@ class BatchDownloadController extends AbstractController
/** @var Upload $upload */
$teamer = $upload->getOwner()->getTeamer();
$filename = $namer->nameForTeamer($upload, $teamer);
$filepath = $this->uploadHandler->getUploadFilepath($upload);
$filepath = $this->uploadHandler->getResolvedUploadFilepath($upload);
try {
$zip->addFileFromPath(fileName: $filename, path: $filepath);
+1 -1
View File
@@ -29,7 +29,7 @@ class DownloadController extends AbstractController
#[IsGranted('DOWNLOAD', subject: 'upload')]
public function index(Upload $upload, Request $request): Response
{
$path = $this->uploadHandler->getUploadFilepath($upload);
$path = $this->uploadHandler->getResolvedUploadFilepath($upload);
if (true === in_array($upload->getType(), [Upload::TYPE_INVOICE, Upload::TYPE_CONTRACT])) {
$namer = new DownloadNamer();