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

addRouter() protected method

protected addRouter ( SimpleXMLElement $simpleXml, $area )
$simpleXml SimpleXMLElement
$area
    protected function addRouter(\SimpleXMLElement $simpleXml, $area)
    {
        $this->removeChildNodeIfNotNull($simpleXml->{$area}, 'routers');
        $areaNode = $simpleXml->{$area} ? $simpleXml->{$area} : $simpleXml->addChild($area);
        $routers = $areaNode->addChild('routers');
        $moduleNamespace = $routers->addChild($this->getLowercaseModuleNamespace());
        $moduleNamespace->addChild('use', $this->configNodes['use']);
        $args = $moduleNamespace->addChild('args');
        $args->addChild('module', $this->getLowercaseModuleNamespace());
        $args->addChild('frontName', $this->configNodes['frontname']);
    }