feat: implement SMS notification service and integrate with existing services

This commit is contained in:
2026-09-21 02:47:12 +03:30
parent 51b13631a3
commit 1e599b917b
9 changed files with 153 additions and 48 deletions
+7 -1
View File
@@ -12,6 +12,7 @@ use App\Models\User;
use App\Services\FileStorageService;
use App\Services\Invoice\InvoiceService;
use App\Services\Shift\ShiftScheduleService;
use App\Services\Sms\SmsNotificationService;
use Illuminate\Support\Facades\DB;
class FastRequestService
@@ -22,11 +23,14 @@ class FastRequestService
protected InvoiceService $invoiceService;
public function __construct(FileStorageService $fileStorageService, ShiftScheduleService $shiftScheduleService, InvoiceService $invoiceService)
protected SmsNotificationService $smsNotificationService;
public function __construct(FileStorageService $fileStorageService, ShiftScheduleService $shiftScheduleService, InvoiceService $invoiceService, SmsNotificationService $smsNotificationService)
{
$this->fileStorageService = $fileStorageService;
$this->shiftScheduleService = $shiftScheduleService;
$this->invoiceService = $invoiceService;
$this->smsNotificationService = $smsNotificationService;
}
public function create(User $requester, array $data, array $historyFiles = [], array $scanFiles = []): Document
@@ -58,6 +62,8 @@ class FastRequestService
]);
}
$this->smsNotificationService->requestRegistered($document);
return $document;
});
}