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

askRoutersOptions() protected method

Asks for routers node options
protected askRoutersOptions ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface
    protected function askRoutersOptions(OutputInterface $output)
    {
        $this->initRoutersConfigNodes();
        $dialog = $this->getDialog();
        $area = trim($dialog->ask($output, '<question>Area (frontend|admin):</question>'));
        $use = trim($dialog->ask($output, '<question>Use:</question>'));
        $frontName = trim($dialog->ask($output, '<question>Frontname:</question>'));
        if ($area != 'frontend' && $area != 'admin') {
            throw new RuntimeException('Router area must be either "frontend" or "admin"');
        }
        $this->configNodes['router_area'] = $area;
        $this->configNodes['use'] = $use;
        $this->configNodes['frontname'] = $frontName;
    }