Bart\Configuration\Configuration::getCurrentPassword PHP Метод

getCurrentPassword() защищенный Метод

Prompt user for their user account's password
protected getCurrentPassword ( string $prompt ) : string
$prompt string Text to prompt the user
Результат string Current user's password
    protected function getCurrentPassword($prompt)
    {
        // Assuming its safe to statically cache since only one user should be running the program
        // ...and user should have only one local account & password
        if (!Arrays::vod(self::$configCache, '__PASSWD__')) {
            /** @var \Bart\Shell $shell */
            $shell = Diesel::create('\\Bart\\Shell');
            self::$configCache['__PASSWD__'] = $shell->std_in_secret($prompt);
        }
        return self::$configCache['__PASSWD__'];
    }