From 827e3c3ce7b36b8a83c89b0d63b25e2e422aaf54 Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Mon, 13 Jan 2025 17:52:04 +0600 Subject: [PATCH] refactor - moved exports to report service --- .../Controllers/Staff/ReportDownloadController.php | 2 +- .../{ => Report}/Export/ExportDocumentBase.php | 2 +- app/Services/{ => Report}/Export/Exporters.php | 10 +++++----- .../{ => Report}/Export/Formats/HtmlExport.php | 4 ++-- app/Services/{ => Report}/Export/Formats/PdfExport.php | 2 +- .../Export/Formats/TemplatedDocExportBase.php | 4 ++-- .../{ => Report}/Export/Formats/Word2003Export.php | 4 ++-- .../{ => Report}/Export/Formats/Word2007Export.php | 2 +- app/Services/{ => Report}/Export/IExportDocument.php | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) rename app/Services/{ => Report}/Export/ExportDocumentBase.php (94%) rename app/Services/{ => Report}/Export/Exporters.php (71%) rename app/Services/{ => Report}/Export/Formats/HtmlExport.php (89%) rename app/Services/{ => Report}/Export/Formats/PdfExport.php (96%) rename app/Services/{ => Report}/Export/Formats/TemplatedDocExportBase.php (92%) rename app/Services/{ => Report}/Export/Formats/Word2003Export.php (88%) rename app/Services/{ => Report}/Export/Formats/Word2007Export.php (93%) rename app/Services/{ => Report}/Export/IExportDocument.php (80%) diff --git a/app/Http/Controllers/Staff/ReportDownloadController.php b/app/Http/Controllers/Staff/ReportDownloadController.php index 00f1614..ce64bc2 100644 --- a/app/Http/Controllers/Staff/ReportDownloadController.php +++ b/app/Http/Controllers/Staff/ReportDownloadController.php @@ -6,7 +6,7 @@ use App\Domain\Report\ExportFormat; use App\Http\Controllers\Controller; use App\Models\StudyReport; -use App\Services\Export\Exporters; +use App\Services\Report\Export\Exporters; use App\Services\Report\ReportStorage; final class ReportDownloadController extends Controller diff --git a/app/Services/Export/ExportDocumentBase.php b/app/Services/Report/Export/ExportDocumentBase.php similarity index 94% rename from app/Services/Export/ExportDocumentBase.php rename to app/Services/Report/Export/ExportDocumentBase.php index e339a13..aafd29b 100644 --- a/app/Services/Export/ExportDocumentBase.php +++ b/app/Services/Report/Export/ExportDocumentBase.php @@ -1,6 +1,6 @@