feat: Implement SMS sending functionality with KavehNegar and Rangineh providers

- Add SendSmsMessage class for encapsulating SMS message data.
- Create KavehNegarProvider and RanginehProvider classes implementing SmsProviderInterface for sending SMS.
- Implement SmsLogRepository and SmsTemplateRepository for managing SMS logs and templates.
- Develop SendSmsHandler for handling SMS sending messages.
- Create SmsService to manage SMS dispatching and logging.
- Add UserProfileController for managing user profiles with CRUD operations.
- Implement UserProfile entity and repository for user profile data management.
- Update symfony.lock and bootstrap.php for project dependencies and environment setup.
This commit is contained in:
hamed
2026-06-09 22:00:34 +03:30
commit de1a78a235
222 changed files with 36388 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
<?php
namespace App\Insurance\Entity;
use App\Category\Entity\Category;
use App\Doctor\Entity\Doctor;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table(name: 'doctor_insurances')]
#[ORM\UniqueConstraint(name: 'idx_doctor_insurance', columns: ['doctor_id', 'category_id'])]
#[ORM\Index(columns: ['category_id'], name: 'idx_doctor_insurance_cat')]
class DoctorInsurance
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Doctor::class)]
#[ORM\JoinColumn(name: 'doctor_id', referencedColumnName: 'id', nullable: false, onDelete: 'CASCADE')]
private Doctor $doctor;
#[ORM\ManyToOne(targetEntity: Category::class)]
#[ORM\JoinColumn(name: 'category_id', referencedColumnName: 'id', nullable: false)]
private Category $category;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $price = null;
public function __construct(Doctor $doctor, Category $category)
{
$this->doctor = $doctor;
$this->category = $category;
}
public function getId(): ?int { return $this->id; }
public function getDoctor(): Doctor { return $this->doctor; }
public function getCategory(): Category { return $this->category; }
public function getPrice(): ?int { return $this->price; }
public function setPrice(?int $v): self { $this->price = $v; return $this; }
public function toArray(): array
{
return [
'id' => $this->id,
'doctor_id' => $this->doctor->getId(),
'category_id' => $this->category->getId(),
'category_name' => $this->category->getLabel(),
'bundle' => $this->category->getBundle(),
'price' => $this->price,
];
}
}