boboko lulnar

This commit is contained in:
2026-04-20 21:07:35 +03:00
parent 57b0727788
commit 4a7eb217a1
32 changed files with 1350 additions and 858 deletions
+3 -11
View File
@@ -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);
}
}