major update

This commit is contained in:
2026-03-04 15:56:58 +01:00
parent 16759a2732
commit 8f4dd5840d
478 changed files with 24313 additions and 8201 deletions

View File

@@ -9,9 +9,9 @@ use MintyPHP\Service\Org\DepartmentService;
class DepartmentImportGateway
{
public function __construct(
private readonly ?DepartmentRepository $departmentRepository = null,
private readonly ?TenantRepository $tenantRepository = null,
private readonly ?DepartmentService $departmentService = null
private readonly DepartmentRepository $departmentRepository,
private readonly TenantRepository $tenantRepository,
private readonly DepartmentService $departmentService
) {
}
@@ -46,16 +46,16 @@ class DepartmentImportGateway
private function departmentRepository(): DepartmentRepository
{
return $this->departmentRepository ?? new DepartmentRepository();
return $this->departmentRepository;
}
private function tenantRepository(): TenantRepository
{
return $this->tenantRepository ?? new TenantRepository();
return $this->tenantRepository;
}
private function departmentService(): DepartmentService
{
return $this->departmentService ?? new DepartmentService();
return $this->departmentService;
}
}