1 | <?php |
||
26 | class Swift_Transport_Esmtp_Auth_XOAuth2Authenticator implements Swift_Transport_Esmtp_Authenticator |
||
|
|||
27 | { |
||
28 | /** |
||
29 | * Get the name of the AUTH mechanism this Authenticator handles. |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | public function getAuthKeyword() |
||
37 | |||
38 | /** |
||
39 | * Try to authenticate the user with $email and $token. |
||
40 | * |
||
41 | * @param Swift_Transport_SmtpAgent $agent |
||
42 | * @param string $email |
||
43 | * @param string $token |
||
44 | * |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function authenticate(Swift_Transport_SmtpAgent $agent, $email, $token) |
||
60 | |||
61 | /** |
||
62 | * Construct the auth parameter. |
||
63 | * |
||
64 | * @see https://developers.google.com/google-apps/gmail/xoauth2_protocol#the_sasl_xoauth2_mechanism |
||
65 | */ |
||
66 | protected function constructXOAuth2Params($email, $token) |
||
70 | } |
||
71 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.