N98\Magento\Command\Developer\Module\CreateCommand::writeReadme PHP Method

writeReadme() protected method

TODO: Make author name / company URL and more configurable
See also: https://raw.github.com/sprankhub/Magento-Extension-Sample-Readme/master/readme.markdown
protected writeReadme ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function writeReadme($input, $output)
    {
        if (!$input->getOption('add-readme')) {
            return;
        }
        if ($this->modmanMode) {
            $outFile = $this->_magentoRootFolder . '/../readme.md';
        } else {
            $outFile = $this->moduleDirectory . '/etc/readme.md';
        }
        file_put_contents($outFile, $this->getHelper('twig')->render('dev/module/create/app/etc/modules/readme.twig', $this->twigVars));
        $output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>');
    }