| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function dispatch(TaskDefinitionInterface $taskDefinition): DispatchResultInterface |
||
| 28 | { |
||
| 29 | $parameter = $taskDefinition->define(); |
||
| 30 | return $this->delegate( |
||
| 31 | new ShopwareCommandDefinition( |
||
| 32 | 'user:create', |
||
| 33 | sprintf( |
||
| 34 | "--admin --lastName=%s --password=%s --email=%s --firstName=%s", |
||
| 35 | escapeshellarg($parameter->get('username')), |
||
| 36 | escapeshellarg($parameter->get('password')), |
||
| 37 | escapeshellarg($parameter->get('email')), |
||
| 38 | escapeshellarg($parameter->get('name')) |
||
| 39 | ) |
||
| 44 | } |