major update
This commit is contained in:
@@ -10,10 +10,10 @@ use MintyPHP\Service\Tenant\TenantService;
|
||||
class AddressBookDirectoryGateway
|
||||
{
|
||||
public function __construct(
|
||||
private readonly ?TenantService $tenantService = null,
|
||||
private readonly ?DepartmentService $departmentService = null,
|
||||
private readonly ?RoleService $roleService = null,
|
||||
private readonly ?DirectoryScopeGateway $scopeGateway = null
|
||||
private readonly TenantService $tenantService,
|
||||
private readonly DepartmentService $departmentService,
|
||||
private readonly RoleService $roleService,
|
||||
private readonly DirectoryScopeGateway $scopeGateway
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -54,21 +54,21 @@ class AddressBookDirectoryGateway
|
||||
|
||||
private function tenantService(): TenantService
|
||||
{
|
||||
return $this->tenantService ?? new TenantService();
|
||||
return $this->tenantService;
|
||||
}
|
||||
|
||||
private function departmentService(): DepartmentService
|
||||
{
|
||||
return $this->departmentService ?? new DepartmentService();
|
||||
return $this->departmentService;
|
||||
}
|
||||
|
||||
private function roleService(): RoleService
|
||||
{
|
||||
return $this->roleService ?? new RoleService();
|
||||
return $this->roleService;
|
||||
}
|
||||
|
||||
private function scopeGateway(): DirectoryScopeGateway
|
||||
{
|
||||
return $this->scopeGateway ?? new DirectoryScopeGateway();
|
||||
return $this->scopeGateway;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user