Banago\PHPloy\PHPloy::getPasswordFromIniFile PHP Méthode

getPasswordFromIniFile() public méthode

Try to fetch password from .phploy file if not found, an empty string will be returned.
public getPasswordFromIniFile ( string $servername ) : string
$servername string Server to fetch password for
Résultat string
    public function getPasswordFromIniFile($servername)
    {
        $values = $this->parseIniFile($this->getPasswordFile());
        if (isset($values[$servername]['pass']) === true) {
            return $values[$servername]['pass'];
        }
        if (isset($values[$servername]['password']) === true) {
            throw new \Exception('Please rename password to pass in ' . $this->getPasswordFile());
        }
        return '';
    }