From: Matthias Schmidt Date: Fri, 2 Sep 2016 18:08:33 +0000 (+0200) Subject: Fix interface name of EmailTransport X-Git-Tag: 3.0.0_Beta_1~323 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d4873b3847d1075dc4f47469624b3989798e9256;p=GitHub%2FWoltLab%2FWCF.git Fix interface name of EmailTransport --- diff --git a/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php index 765111d97c..4128d376b8 100644 --- a/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php @@ -34,7 +34,7 @@ class EmailDeliveryBackgroundJob extends AbstractBackgroundJob { /** * instance of the default transport - * @var \wcf\system\email\transport\EmailTransport + * @var \wcf\system\email\transport\IEmailTransport */ protected static $transport = null; @@ -44,7 +44,7 @@ class EmailDeliveryBackgroundJob extends AbstractBackgroundJob { * @param Email $email * @param Mailbox $envelopeFrom * @param Mailbox $envelopeTo - * @see \wcf\system\email\transport\EmailTransport + * @see \wcf\system\email\transport\IEmailTransport */ public function __construct(Email $email, Mailbox $envelopeFrom, Mailbox $envelopeTo) { $this->email = $email; diff --git a/wcfsetup/install/files/lib/system/email/transport/DebugEmailTransport.class.php b/wcfsetup/install/files/lib/system/email/transport/DebugEmailTransport.class.php index abb8cbe8c5..d02ef354c2 100644 --- a/wcfsetup/install/files/lib/system/email/transport/DebugEmailTransport.class.php +++ b/wcfsetup/install/files/lib/system/email/transport/DebugEmailTransport.class.php @@ -15,7 +15,7 @@ use wcf\util\DateUtil; * @package WoltLabSuite\Core\System\Email\Transport * @since 3.0 */ -class DebugEmailTransport implements EmailTransport { +class DebugEmailTransport implements IEmailTransport { /** * mbox file * @var File diff --git a/wcfsetup/install/files/lib/system/email/transport/EmailTransport.class.php b/wcfsetup/install/files/lib/system/email/transport/EmailTransport.class.php deleted file mode 100644 index 63c75de72d..0000000000 --- a/wcfsetup/install/files/lib/system/email/transport/EmailTransport.class.php +++ /dev/null @@ -1,24 +0,0 @@ - - * @package WoltLabSuite\Core\System\Email\Transport - * @since 3.0 - */ -interface EmailTransport { - /** - * Delivers the given $email to the given Mailbox as the recipient. - * - * @param Email $email - * @param Mailbox $envelopeFrom - * @param Mailbox $envelopeTo - */ - public function deliver(Email $email, Mailbox $envelopeFrom, Mailbox $envelopeTo); -} diff --git a/wcfsetup/install/files/lib/system/email/transport/IEmailTransport.class.php b/wcfsetup/install/files/lib/system/email/transport/IEmailTransport.class.php new file mode 100644 index 0000000000..ef2811025b --- /dev/null +++ b/wcfsetup/install/files/lib/system/email/transport/IEmailTransport.class.php @@ -0,0 +1,24 @@ + + * @package WoltLabSuite\Core\System\Email\Transport + * @since 3.0 + */ +interface IEmailTransport { + /** + * Delivers the given $email to the given Mailbox as the recipient. + * + * @param Email $email + * @param Mailbox $envelopeFrom + * @param Mailbox $envelopeTo + */ + public function deliver(Email $email, Mailbox $envelopeFrom, Mailbox $envelopeTo); +} diff --git a/wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php b/wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php index a88e95fbc4..175073e725 100644 --- a/wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php +++ b/wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php @@ -14,7 +14,7 @@ use wcf\util\StringUtil; * @package WoltLabSuite\Core\System\Email\Transport * @since 3.0 */ -class PhpEmailTransport implements EmailTransport { +class PhpEmailTransport implements IEmailTransport { /** * Delivers the given email via mail(). * diff --git a/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php b/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php index 9456a46085..3296d08ce5 100644 --- a/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php +++ b/wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php @@ -17,7 +17,7 @@ use wcf\util\StringUtil; * @package WoltLabSuite\Core\System\Email\Transport * @since 3.0 */ -class SmtpEmailTransport implements EmailTransport { +class SmtpEmailTransport implements IEmailTransport { /** * SMTP connection * @var RemoteFile