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