feat: rename confirmation document to invoice
This commit is contained in:
@@ -31,10 +31,10 @@ class DownloadController extends AbstractController
|
||||
defaults: ['fileType' => 'documents']
|
||||
)]
|
||||
#[Route(
|
||||
path: '/bookings/{id}/confirmation',
|
||||
name: 'app_booking_confirmation',
|
||||
path: '/bookings/{id}/invoice',
|
||||
name: 'app_booking_invoice',
|
||||
requirements: ['id' => '\d+'],
|
||||
defaults: ['fileType' => 'confirmation']
|
||||
defaults: ['fileType' => 'invoice']
|
||||
)]
|
||||
#[IsGranted("ROLE_USER")]
|
||||
public function documents(int $id, string $fileType, Request $request): Response
|
||||
@@ -47,7 +47,7 @@ class DownloadController extends AbstractController
|
||||
|
||||
$type = match ($fileType) {
|
||||
'documents' => 'Dokumentdruck',
|
||||
'confirmation' => 'Vorgangdruck',
|
||||
'invoice' => 'Vorgangdruck',
|
||||
};
|
||||
|
||||
$this->logger->info('Initiated document download', [
|
||||
|
||||
Reference in New Issue
Block a user