|
@@ 145-148 (lines=4) @@
|
| 142 |
|
return 1; |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
if ($input->getOption('display-name')) { |
| 146 |
|
$user->setDisplayName($input->getOption('display-name')); |
| 147 |
|
$output->writeln('Display name set to "' . $user->getDisplayName() . '"'); |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
// Set email if supplied & valid |
| 151 |
|
if ($email !== null) { |
|
@@ 209-213 (lines=5) @@
|
| 206 |
|
if ($response->getStatus() === Http::STATUS_CREATED) { |
| 207 |
|
$output->writeln('<info>The user "' . $response->getData()['name'] . '" was created successfully</info>'); |
| 208 |
|
} |
| 209 |
|
if ($input->getOption('display-name')) { |
| 210 |
|
$user = $this->userManager->get($uid); |
| 211 |
|
$user->setDisplayName($input->getOption('display-name')); |
| 212 |
|
$output->writeln('Display name set to "' . $user->getDisplayName() . '"'); |
| 213 |
|
} |
| 214 |
|
if ($input->getOption('group')) { |
| 215 |
|
if (\is_array($input->getOption('group'))) { |
| 216 |
|
foreach ($input->getOption('group') as $group) { |