N°5102 - Allow to send emails using GSuite SMTP and OAuth - Fix errors on vendor name

This commit is contained in:
Eric Espie
2022-07-06 14:10:01 +02:00
parent c759856a61
commit f40141072a
3 changed files with 14 additions and 29 deletions

View File

@@ -8,15 +8,8 @@ use OAuthClient;
abstract class OAuthClientProviderAbstract implements IOAuthClientProvider
{
// /** @var string */
// static protected $sVendorName = '';
// /** @var array */
// static protected $sVendorColors = ['', '', '', ''];
// /** @var string */
// static protected $sVendorIcon = '';
// static protected $sRequiredSMTPScope = '';
// static protected $sRequiredIMAPScope = '';
// static protected $sRequiredPOPScope = '';
/** @var string */
static protected $sVendorName = '';
/** @var \League\OAuth2\Client\Provider\GenericProvider */
protected $oVendorProvider;
@@ -69,4 +62,12 @@ abstract class OAuthClientProviderAbstract implements IOAuthClientProvider
return $this->oOauthClient->GetScope();
}
/**
* @return string
*/
public static function GetVendorName()
{
return self::$sVendorName;
}
}