settingRepository ??= new SettingRepository(); } public function createTenantRepository(): TenantRepository { return $this->tenantRepository ??= new TenantRepository(); } public function createRoleRepository(): RoleRepository { return $this->roleRepository ??= new RoleRepository(); } public function createDepartmentRepository(): DepartmentRepository { return $this->departmentRepository ??= new DepartmentRepository(); } }