N98\Magento\Command\Developer\Module\CreateCommand::writeComposerConfig PHP Метод

writeComposerConfig() защищенный Метод

Write composer.json
protected writeComposerConfig ( 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 writeComposerConfig(InputInterface $input, OutputInterface $output)
    {
        if (!$input->getOption('add-composer')) {
            return;
        }
        if ($this->modmanMode) {
            $outFile = $this->_magentoRootFolder . '/../composer.json';
        } else {
            $outFile = $this->moduleDirectory . '/etc/composer.json';
        }
        file_put_contents($outFile, $this->getHelper('twig')->render('dev/module/create/composer.twig', $this->twigVars));
        $output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>');
    }