控制台应用,yzncms本身基于tp5.1框架,里面的队列用不了,bug,坑
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OAuthTokenProvider.php 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * PHPMailer - PHP email creation and transport class.
  4. * PHP Version 5.5.
  5. *
  6. * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
  7. *
  8. * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
  9. * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
  10. * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
  11. * @author Brent R. Matzelle (original founder)
  12. * @copyright 2012 - 2020 Marcus Bointon
  13. * @copyright 2010 - 2012 Jim Jagielski
  14. * @copyright 2004 - 2009 Andy Prevost
  15. * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
  16. * @note This program is distributed in the hope that it will be useful - WITHOUT
  17. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  18. * FITNESS FOR A PARTICULAR PURPOSE.
  19. */
  20. namespace PHPMailer\PHPMailer;
  21. /**
  22. * OAuthTokenProvider - OAuth2 token provider interface.
  23. * Provides base64 encoded OAuth2 auth strings for SMTP authentication.
  24. *
  25. * @see OAuth
  26. * @see SMTP::authenticate()
  27. *
  28. * @author Peter Scopes (pdscopes)
  29. * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
  30. */
  31. interface OAuthTokenProvider
  32. {
  33. /**
  34. * Generate a base64-encoded OAuth token ensuring that the access token has not expired.
  35. * The string to be base 64 encoded should be in the form:
  36. * "user=<user_email_address>\001auth=Bearer <access_token>\001\001"
  37. *
  38. * @return string
  39. */
  40. public function getOauth64();
  41. }