src/Command/GenerateModuleCommand.php
protected function _getUserInput($sText, $bAllowEmpty = false)
    {
        $questionHelper = $this->getHelper('question');

        do {
            $sTitle = "$sText: " . ($bAllowEmpty ? '[optional] ' : '[required] ');
            $question = new Question($sTitle);
            $sInput = $questionHelper->ask($this->input, $this->output, $question);
        } while (!$bAllowEmpty && !$sInput);

        return $sInput;
    }
protected function _getUserInput($sText, $bAllowEmpty = false)
    {
        $questionHelper = $this->getHelper('question');

        do {
            $sTitle = "$sText: " . ($bAllowEmpty ? '[optional] ' : '[required] ');
            $question = new Question($sTitle);
            $sInput = $questionHelper->ask($this->input, $this->output, $question);
        } while (!$bAllowEmpty && !$sInput);

        return $sInput;
    }
protected function _getUserInput ( $ sText , $ bAllowEmpty = false ) { $ questionHelper = $ this -> getHelper ( 'question' ) ; do { $ sTitle = "$sText: " . ( $ bAllowEmpty ? '[optional] ' : '[required] ' ) ; $ question = new Question ( $ sTitle ) ; $ sInput = $ questionHelper -> ask ( $ this -> input , $ this -> output , $ question ) ; } while ( ! $ bAllowEmpty && ! $ sInput ) ; return $ sInput ; }
Get user input

@param string $sText
@param bool $bAllowEmpty

@return string
Get user input