feat: add RichTextEditor component for rich text editing in articles
feat: create SanitizeBlogBodiesCommand to clean existing blog bodies according to current HTML sanitization policies test: add AppointmentTreatmentSessionLinkTest to ensure appointment booking functionality works correctly with treatment session links
This commit is contained in:
@@ -12,6 +12,7 @@ use App\Secretary\Repository\DoctorSecretaryRepository;
|
||||
use App\Sms\Entity\SmsLog;
|
||||
use App\Sms\Service\SmsService;
|
||||
use App\Subscription\Service\SubscriptionService;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
|
||||
|
||||
/**
|
||||
@@ -32,6 +33,7 @@ class SecretaryService
|
||||
private readonly SubscriptionService $subscriptionService,
|
||||
private readonly SmsService $smsService,
|
||||
private readonly string $appUrl,
|
||||
private readonly EntityManagerInterface $em,
|
||||
) {}
|
||||
|
||||
/** Find the secretary User by mobile or create it; ensure ROLE_SECRETARY, apply name/password. */
|
||||
@@ -110,7 +112,7 @@ class SecretaryService
|
||||
$created[] = $row;
|
||||
}
|
||||
|
||||
$this->secretaryRepo->getEntityManager()->flush(); // flush the batch of new rows
|
||||
$this->em->flush(); // flush the batch of new rows
|
||||
|
||||
if (!empty($created)) {
|
||||
$this->sendWelcomeSms($mobile, $clinic->getName() ?? 'کلینیک');
|
||||
@@ -181,7 +183,7 @@ class SecretaryService
|
||||
}
|
||||
}
|
||||
|
||||
$this->secretaryRepo->getEntityManager()->flush();
|
||||
$this->em->flush();
|
||||
|
||||
return [
|
||||
'added' => $added,
|
||||
|
||||
Reference in New Issue
Block a user