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