N98\Magento\Command\Developer\Module\UpdateCommand::addResourceModelNodeIfConfirmed PHP Method

addResourceModelNodeIfConfirmed() protected method

protected addResourceModelNodeIfConfirmed ( Symfony\Component\Console\Output\OutputInterface $output, SimpleXMLElement $configXml )
$output Symfony\Component\Console\Output\OutputInterface
$configXml SimpleXMLElement
    protected function addResourceModelNodeIfConfirmed(OutputInterface $output, \SimpleXMLElement $configXml)
    {
        $dialog = $this->getDialog();
        if ($dialog->askConfirmation($output, '<question>Would you like to also add a Resource Model(y/n)?</question>', false)) {
            $resourceModel = trim($dialog->ask($output, '<question>Resource Model:</question>'));
            $configXml->global->models->{$this->getLowercaseModuleNamespace()}->addChild('resourceModel', $resourceModel);
        }
    }