Fix interface name of EmailTransport
authorMatthias Schmidt <gravatronics@live.com>
Fri, 2 Sep 2016 18:08:33 +0000 (20:08 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 2 Sep 2016 18:08:33 +0000 (20:08 +0200)
wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php
wcfsetup/install/files/lib/system/email/transport/DebugEmailTransport.class.php
wcfsetup/install/files/lib/system/email/transport/EmailTransport.class.php [deleted file]
wcfsetup/install/files/lib/system/email/transport/IEmailTransport.class.php [new file with mode: 0644]
wcfsetup/install/files/lib/system/email/transport/PhpEmailTransport.class.php
wcfsetup/install/files/lib/system/email/transport/SmtpEmailTransport.class.php

index 765111d97c904aeeb941b374b3e7b2ce9a278fd8..4128d376b847aae67205d8d0bafadda6f2b013bd 100644 (file)
@@ -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;
index abb8cbe8c5c5127185a7d15dc4023d41396cd370..d02ef354c27458bcc3eb0e991878eadff1bdd6d4 100644 (file)
@@ -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 (file)
index 63c75de..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-namespace wcf\system\email\transport;
-use wcf\system\email\Email;
-use wcf\system\email\Mailbox;
-
-/**
- * An EmailTransport sends emails.
- * 
- * @author     Tim Duesterhus
- * @copyright  2001-2016 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @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 (file)
index 0000000..ef28110
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+namespace wcf\system\email\transport;
+use wcf\system\email\Email;
+use wcf\system\email\Mailbox;
+
+/**
+ * An EmailTransport sends emails.
+ * 
+ * @author     Tim Duesterhus
+ * @copyright  2001-2016 WoltLab GmbH
+ * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @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);
+}
index a88e95fbc4d523958d161dd4ebf5d79495e38cf7..175073e72522eb7d69a3a6ac6fc63d32d7f32fcf 100644 (file)
@@ -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().
         * 
index 9456a460857db7f0866a68ed0875c01e4cc949c4..3296d08ce56f62138137f3a8c5c043f647bff788 100644 (file)
@@ -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