boboko lulnar
This commit is contained in:
1 parent
57b0727788
commit
4a7eb217a1
32 files changed
+1350
-858
No files matched your search
@@ -7,15 +7,11 @@ use Lucent\Primitive\Collection;
|
||||
|
||||
readonly class AccountService
|
||||
{
|
||||
|
||||
public function __construct(
|
||||
private AuthService $authService,
|
||||
private AuthService $authService,
|
||||
private ChannelService $channelService,
|
||||
private UserRepo $userRepo,
|
||||
)
|
||||
{
|
||||
|
||||
}
|
||||
private UserRepo $userRepo,
|
||||
) {}
|
||||
|
||||
/**
|
||||
* @return Collection<User>
|
||||
@@ -25,13 +21,11 @@ readonly class AccountService
|
||||
return $this->userRepo->all();
|
||||
}
|
||||
|
||||
|
||||
public function countUsers(): int
|
||||
{
|
||||
return $this->userRepo->count();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return Collection<UserProfile>
|
||||
*/
|
||||
@@ -54,6 +48,4 @@ readonly class AccountService
|
||||
$roles = $this->authService->currentUserRoles();
|
||||
return $this->channelService->schemasWritableByRoles($roles);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user