| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | protected function createEtcModuleFile() |
||
| 19 | { |
||
| 20 | $outFile = $this->config->getString('moduleDirectory') . '/etc/module.xml'; |
||
| 21 | |||
| 22 | \file_put_contents( |
||
| 23 | $outFile, |
||
| 24 | $this->getCommand()->getHelper('twig')->render( |
||
| 25 | 'dev/module/create/app/code/module/etc/module.xml.twig', |
||
| 26 | $this->config->getArray('twigVars') |
||
| 27 | ) |
||
| 28 | ); |
||
| 29 | |||
| 30 | $this->output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>'); |
||
| 31 | } |
||
| 32 | |||
| 48 |