StackFormation\Profile\YamlCredentialProvider::getDecryptedFilecontent PHP Méthode

getDecryptedFilecontent() protected méthode

protected getDecryptedFilecontent ( $encryptedFilename )
    protected function getDecryptedFilecontent($encryptedFilename)
    {
        if (!is_file($encryptedFilename)) {
            throw new \Symfony\Component\Filesystem\Exception\FileNotFoundException("Could not find encrypted file {$encryptedFilename}");
        }
        if (!class_exists('\\Vault\\Vault')) {
            throw new \Exception('Please install aoepeople/vault');
        }
        try {
            return \Vault\Vault::open($encryptedFilename);
        } catch (\Exception $e) {
            throw new \Exception('Error decrypting ' . $encryptedFilename, 0, $e);
        }
    }