/**
* instance of the default transport
- * @var \wcf\system\email\transport\EmailTransport
+ * @var \wcf\system\email\transport\IEmailTransport
*/
protected static $transport = null;
* @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;
* @package WoltLabSuite\Core\System\Email\Transport
* @since 3.0
*/
-class DebugEmailTransport implements EmailTransport {
+class DebugEmailTransport implements IEmailTransport {
/**
* mbox file
* @var File
+++ /dev/null
-<?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);
-}
--- /dev/null
+<?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);
+}
* @package WoltLabSuite\Core\System\Email\Transport
* @since 3.0
*/
-class PhpEmailTransport implements EmailTransport {
+class PhpEmailTransport implements IEmailTransport {
/**
* Delivers the given email via mail().
*
* @package WoltLabSuite\Core\System\Email\Transport
* @since 3.0
*/
-class SmtpEmailTransport implements EmailTransport {
+class SmtpEmailTransport implements IEmailTransport {
/**
* SMTP connection
* @var RemoteFile