| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | protected function createRegistrationFile() |
||
| 34 | { |
||
| 35 | $outFile = $this->config->getString('moduleDirectory') . '/registration.php'; |
||
| 36 | |||
| 37 | \file_put_contents( |
||
| 38 | $outFile, |
||
| 39 | $this->getCommand()->getHelper('twig')->render( |
||
| 40 | 'dev/module/create/app/code/module/registration.php.twig', |
||
| 41 | $this->config->getArray('twigVars') |
||
| 42 | ) |
||
| 43 | ); |
||
| 44 | |||
| 45 | $this->output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>'); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |