Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function provide(Operation $operation, array $uriVariables = [], array $context = []): iterable |
||
27 | { |
||
28 | $groupId = $uriVariables['id'] ?? null; |
||
29 | |||
30 | if (null === $groupId) { |
||
31 | return []; |
||
32 | } |
||
33 | |||
34 | $usergroupRepository = $this->entityManager->getRepository(Usergroup::class); |
||
35 | |||
36 | return $usergroupRepository->getUsersByGroup((int) $groupId); |
||
37 | } |
||
39 |