Ask for confirmation.

@param string $text

@return mixed
552286
public function confirm($text)
    {
        $helper = $this->getHelper('question');

        $question = new ConfirmationQuestion($text, false);

        return $helper->ask($this->input, $this->getOutputInterface(), $question);
    }
833378
protected function getDataFromText($text)
    {
        try {
            $data = Yaml::parse($text);
        } catch (ParseException $e) {
            return null;
        }
        return $data;
    }
1029748
protected function send($text)
    {
        $this->logger->debug('Sending: ' . $text);
        $text .= "\n";
        $len = strlen($text);
        $res = fwrite($this->output, $text) === $len;
        if ($res != true) {
            throw new PAGIException('Could not send command, fwrite failed');
        }
        do {
            $res = $this->read();
        } while (strlen($res) < 2);
        return $this->getResultFromResultString($res);
    }
555975
public function notSee($text)
    {
        return $this->assertSee($text, sprintf(
            "Could not find '%s' on the page, '%s'.", $text, $this->currentPage
        ), true);
    }
472024
static public function getCode( $text ){
		if( $code = array_search( $text, self::$codes ) )
			return $code;
		$__text	= trim( strtolower( preg_replace( "/[^a-z ]/i", "", $text ) ) );
		foreach( self::$codes as $code => $_text )
			if( strtolower( $_text ) === $__text )
				return $code;
		throw new InvalidArgumentException( 'No HTTP status code found for status text "'.$text.'"' );
	}
96195
public function iSeeMessage( $text )
    {
        trigger_error(
            "iSeeMessage is deprecated since v6.3.0 and will be removed in v7.0.0",
            E_USER_DEPRECATED
        );
        $this->checkForExceptions();
        $this->assertSession()->pageTextContains( $text );
    }
370749
public function ask($text, $default = '', $displayDefault = true)
    {
        if ($displayDefault && !empty($default)) {
            $defaultText = $default;
            if (strlen($defaultText) > 30) {
                $defaultText = substr($default, 0, 30) . '...';
            }
            $text .= " [$defaultText]";
        }
        $this->textWriter->write("$text ");
        return trim(fgets(STDIN)) ?: $default;
    }
190305
public function reprompt(string $text)
    {
        $outputSpeech = OutputSpeech::createByText($text);
        $reprompt     = new Reprompt($outputSpeech);

        $this->responseBody->reprompt = $reprompt;

        return $this->response;
    }
1076357
function verify($text, $signature)
    {
        try {
            $verified = $this->gpg->verify($text, $signature);
            return $this->parse_signature($verified[0]);
        }
        catch (Exception $e) {
            return $this->get_error_from_exception($e);
        }
    }
1344427
public function confirm($question, $default = true)
	{
		$dialog = $this->getHelperSet()->get('dialog');

		return $dialog->askConfirmation($this->output, "<question>$question</question>", $default);
	}
1291230
public function text($text = '')
    {
        $msg = array(
            'ToUserName'   => $this->getRevFrom(),
            'FromUserName' => $this->getRevTo(),
            'MsgType'      => self::MSGTYPE_TEXT,
            'Content'      => $this->_auto_text_filter($text),
            'CreateTime'   => time(),
        );
        $this->Message($msg);
        return $this;
    }
503634
public static function ask($text, $callback = null, $text_color = null, $bg_color = null)
    {
        if (null === $callback) {
            $callback = function() {
                return true;
            };
        }

        do {
            self::write($text, $text_color, $bg_color);
        } while (!$callback($answer = self::read()));

        return $answer;
    }
975550
public function say($text)
    {
        $message = $this->getSpeechBubble($text);
        
        return str_replace(
          '{{bubble}}',
          $message,
          $this->character
        );
    }
1283465
public function lookup($text)
    {
        $url = $this->getLookupUrl($text);
        $response = $this->sendRequest(
            'GET',
            $url,
            [
                'version' => $this->serviceProtocolVersion
            ]
        );
        if ($response->getStatusCode() === 200) {
            $definitions = $this->parseLookupResponse($response);
            return $definitions;
        }
        return false;
    }
993608
public function getChoice($text)
    {
        $found = null;
        $text = trim($text);
        $iText = strtoupper(TextNormalizer::stripDiacritics($text));
        foreach ($this->choices as $choice) {
            /** @var CellChoice $choice */
            $tmpText = trim($choice->getText());
            if ($tmpText === $text
              || (
                  !$choice->isCaseSensitive() &&
                  strtoupper(TextNormalizer::stripDiacritics($tmpText)) === $iText)
          ) {
                $found = $choice;
                break;
            }
        }

        return $found;
    }
643926
public function checkText($text, array $params = [])
    {
        $query = $this->mergeParams($this->getDefaultParams(), $params);

        $query['text'] = $text;

        $response = $this->sendRequest(
            'POST',
            '/services/spellservice.json/checkText',
            [
                'form_params' => $query
            ]
        );

        if (!empty($query['callback'])) {
            return (string) $response->getBody();
        }

        return $this->getDecodedBody($response->getBody());
    }
533450
public function hidden($text)
    {
        $helper = $this->getHelper('question');
        //
        $question = new Question($this->console->question($text.' '));
        //
        $question->setHidden(true);
        //
        $question->setHiddenFallback(true);
        //
        return $helper->ask($this->input, $this->output, $question);
    }