| @@ 56-66 (lines=11) @@ | ||
| 53 | ; |
|
| 54 | } |
|
| 55 | ||
| 56 | protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 57 | $groupName = $input->getArgument('group'); |
|
| 58 | $group = $this->groupManager->get($groupName); |
|
| 59 | if (!$group) { |
|
| 60 | $output->writeln("<error>Group $groupName does not exist</error>"); |
|
| 61 | return 1; |
|
| 62 | } |
|
| 63 | ||
| 64 | $displayNames = $this->groupManager->displayNamesInGroup($group->getGID()); |
|
| 65 | parent::writeArrayInOutputFormat($input, $output, $displayNames); |
|
| 66 | } |
|
| 67 | } |
|
| 68 | ||
| @@ 62-72 (lines=11) @@ | ||
| 59 | ; |
|
| 60 | } |
|
| 61 | ||
| 62 | protected function execute(InputInterface $input, OutputInterface $output) { |
|
| 63 | $uid = $input->getArgument('uid'); |
|
| 64 | if (!$this->userManager->userExists($uid)) { |
|
| 65 | $output->writeln("<error>User $uid does not exist.</error>"); |
|
| 66 | return 1; |
|
| 67 | } |
|
| 68 | ||
| 69 | $user = $this->userManager->get($uid); |
|
| 70 | $groupNames = $this->groupManager->getUserGroupIds($user); |
|
| 71 | parent::writeArrayInOutputFormat($input, $output, $groupNames); |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||