| Conditions | 2 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 30 | { |
||
| 31 | $output->writeln('Creating configuration table...'); |
||
| 32 | $factory = new MagiumConfigurationFactory(); |
||
| 33 | $persistence = $factory->getBuilderFactory()->getPersistence(); |
||
| 34 | try { |
||
| 35 | $persistence->create(); |
||
| 36 | $output->writeln('Table created'); |
||
| 37 | } catch (\Exception $e) { |
||
| 38 | $output->writeln('Unable to create table: ' . $e->getMessage()); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 43 |