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

writeEtcModules() protected method

protected writeEtcModules ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface
    protected function writeEtcModules(OutputInterface $output)
    {
        $outFile = sprintf('%s/app/etc/modules/%s_%s.xml', $this->_magentoRootFolder, $this->vendorNamespace, $this->moduleName);
        /** @var $helper TwigHelper */
        $helper = $this->getHelper('twig');
        $buffer = $helper->render('dev/module/create/app/etc/modules/definition.twig', $this->twigVars);
        $size = file_put_contents($outFile, $buffer);
        $output->writeln('<info>Created file: <comment>' . $outFile . '<comment> (' . $size . ' bytes)</info>');
    }