| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 41 | 1 | protected function execute(InputInterface $input, OutputInterface $output): ?int |
|
| 42 | { |
||
| 43 | /** @var string|null $name */ |
||
| 44 | 1 | $name = $input->getOption('em'); |
|
| 45 | |||
| 46 | /** @var EntityManagerInterface $entityManager */ |
||
| 47 | 1 | $entityManager = $this->managerRegistry->getManager($name); |
|
| 48 | |||
| 49 | 1 | $this->setHelperSet(new HelperSet(['em' => new EntityManagerHelper($entityManager)])); |
|
| 50 | |||
| 51 | 1 | return parent::execute($input, $output); |
|
| 52 | } |
||
| 54 |