| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 38 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 39 | { |
||
| 40 | $repository = $this->getContainer()->get('multi_user.user.repository'); |
||
| 41 | |||
| 42 | $handler = new CreateUserHandler($repository); |
||
| 43 | |||
| 44 | $username = $input->getArgument('username'); |
||
| 45 | $password = $input->getArgument('password'); |
||
| 46 | $displayName = $input->getArgument('displayName'); |
||
| 47 | |||
| 48 | $command = new CreateUser(); |
||
| 49 | $command->username = $username; |
||
| 50 | $command->password = $password; |
||
| 51 | $command->displayName = $displayName; |
||
| 52 | |||
| 53 | $handler->handle($command); |
||
| 54 | |||
| 55 | $output->writeln($username . ' has been created'); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |