| Conditions | 2 |
| Paths | 2 |
| Total Lines | 23 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 34 | { |
||
| 35 | $this->detectMagento($output, true); |
||
| 36 | |||
| 37 | if (!$this->initMagento()) { |
||
| 38 | return; |
||
| 39 | } |
||
| 40 | |||
| 41 | $moduleVersion = $input->getArgument('version'); |
||
| 42 | $moduleName = $this->getMagentoModuleName($input->getArgument('module')); |
||
| 43 | |||
| 44 | /** @var \Magento\Framework\Module\ResourceInterface */ |
||
| 45 | $this->getMagentoModuleResource()->setDbVersion($moduleName, $moduleVersion); |
||
| 46 | $this->getMagentoModuleResource()->setDataVersion($moduleName, $moduleVersion); |
||
| 47 | |||
| 48 | $output->writeln( |
||
| 49 | sprintf( |
||
| 50 | '<info>Successfully updated: "%s" to version: "%s"</info>', |
||
| 51 | $moduleName, |
||
| 52 | $moduleVersion |
||
| 53 | ) |
||
| 54 | ); |
||
| 55 | } |
||
| 56 | } |
||
| 57 |