src/Console/Component/Prompter.php
public function password(string $prompt)
    {
        if ($this->style) {
            echo $this->formatter->getStartMark($this->style);
        }

        $result = $this->console->readPassword($prompt);

        if ($this->style) {
            echo $this->formatter->getClearMark();
        }

        return $result;
    }
public function password(string $prompt)
    {
        if ($this->style) {
            echo $this->formatter->getStartMark($this->style);
        }

        $result = $this->console->readPassword($prompt);

        if ($this->style) {
            echo $this->formatter->getClearMark();
        }

        return $result;
    }
public function password ( string $ prompt ) { if ( $ this -> style ) { echo $ this -> formatter -> getStartMark ( $ this -> style ) ; } $ result = $ this -> console -> readPassword ( $ prompt ) ; if ( $ this -> style ) { echo $ this -> formatter -> getClearMark ( ) ; } return $ result ; }
Show password prompt with a message.

@param string $prompt

@return mixed|string
Show password prompt with a message .