/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Console/View/Components/Secret.php
24 строки
575 B
Jess Archer
[10.x] Prompts (#46772)
01 авг 2023, 02:47
Не верифицирован
01 авг 2023, 02:47
f6e9a77
Код
Авторство
О чём код?
<?php namespace Illuminate\Console\View\Components; use Symfony\Component\Console\Question\Question; class Secret extends Component { /** * Renders the component using the given arguments. * * @param string $question * @param bool $fallback * @return mixed */ public function render($question, $fallback = true) { $question = new Question($question); $question->setHidden(true)->setHiddenFallback($fallback); return $this->usingQuestionHelper(fn () => $this->output->askQuestion($question)); } }