Rename oauth class

This commit is contained in:
Marcus Bointon 2015-09-14 10:58:04 +02:00
parent 14ace3da7b
commit de8e32f842
4 changed files with 262 additions and 200 deletions

View File

@ -63,7 +63,7 @@ class PHPMailerOAuth extends PHPMailer
public function getOAUTHInstance()
{
if (!is_object($this->oauth)) {
$this->oauth = new OAuth(
$this->oauth = new PHPMailerOAuthGoogle(
$this->oauthUserEmail,
$this->oauthClientSecret,
$this->oauthClientId,

View File

@ -1,5 +1,30 @@
<?php
class OAuth
/**
* PHPMailer - PHP email creation and transport class.
* PHP Version 5.4
* @package PHPMailer
* @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
* @author Brent R. Matzelle (original founder)
* @copyright 2012 - 2014 Marcus Bointon
* @copyright 2010 - 2012 Jim Jagielski
* @copyright 2004 - 2009 Andy Prevost
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
* @note This program is distributed in the hope that it will be useful - WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
* PHPMailerOAuthGoogle - Wrapper for League OAuth2 Google provider.
* @package PHPMailer
* @author @sherryl4george
* @author Marcus Bointon (@Synchro) <phpmailer@synchromedia.co.uk>
* @link https://github.com/thephpleague/oauth2-client
*/
class PHPMailerOAuthGoogle
{
private $oauthUserEmail = '';
private $oauthRefreshToken = '';

View File

@ -33,7 +33,7 @@
"classmap": [
"class.phpmailer.php",
"class.phpmaileroauth.php",
"class.oauth.php",
"class.phpmaileroauthgoogle.php",
"class.smtp.php",
"class.pop3.php",
"extras/EasyPeasyICS.php",
@ -41,4 +41,4 @@
]
},
"license": "LGPL-2.1"
}
}

429
composer.lock generated

File diff suppressed because it is too large Load Diff