Skip to content
Permalink
Browse files

Require nette/mail 3.1

  • Loading branch information...
mabar authored and f3l1x committed Jul 20, 2019
1 parent 21a1e34 commit b6ba987e94f18c64b3f1191b392a46fa554d4b9c
@@ -17,7 +17,7 @@
],
"require": {
"php": "^7.2",
"nette/mail": "~3.0.0",
"nette/mail": "~3.1.0",
"nette/utils": "~3.0.0"
},
"require-dev": {
@@ -2,15 +2,14 @@
namespace Contributte\Mail\Mailer;
use Exception;
use Nette\Mail\IMailer;
use Nette\Mail\Mailer;
use Nette\Mail\Message;
use Throwable;
final class CompositeMailer implements IMailer
final class CompositeMailer implements Mailer
{
/** @var IMailer[] */
/** @var Mailer[] */
private $mailers = [];
/** @var bool */
@@ -21,7 +20,7 @@ public function __construct(bool $silent = false)
$this->silent = $silent;
}
public function add(IMailer $mailer): void
public function add(Mailer $mailer): void
{
$this->mailers[] = $mailer;
}
@@ -2,10 +2,10 @@
namespace Contributte\Mail\Mailer;
use Nette\Mail\IMailer;
use Nette\Mail\Mailer;
use Nette\Mail\Message;
final class DevNullMailer implements IMailer
final class DevNullMailer implements Mailer
{
public function send(Message $mail): void
@@ -2,19 +2,19 @@
namespace Contributte\Mail\Mailer;
use Nette\Mail\IMailer;
use Nette\Mail\Mailer;
use Nette\Mail\Message;
final class DevOpsMailer implements IMailer
final class DevOpsMailer implements Mailer
{
/** @var IMailer */
/** @var Mailer */
private $mailer;
/** @var string */
private $mail;
public function __construct(IMailer $mailer, string $mail)
public function __construct(Mailer $mailer, string $mail)
{
$this->mailer = $mailer;
$this->mail = $mail;
@@ -3,10 +3,10 @@
namespace Contributte\Mail\Mailer;
use Contributte\Mail\Exception\RuntimeException;
use Nette\Mail\IMailer;
use Nette\Mail\Mailer;
use Nette\Mail\Message;
final class FileMailer implements IMailer
final class FileMailer implements Mailer
{
/** @var string */
@@ -2,19 +2,19 @@
namespace Contributte\Mail\Mailer;
use Nette\Mail\IMailer;
use Nette\Mail\Mailer;
use Nette\Mail\Message;
final class TraceableMailer implements IMailer
final class TraceableMailer implements Mailer
{
/** @var IMailer */
/** @var Mailer */
private $mailer;
/** @var Message[] */
private $mails = [];
public function __construct(IMailer $mailer)
public function __construct(Mailer $mailer)
{
$this->mailer = $mailer;
}

0 comments on commit b6ba987

Please sign in to comment.
You can’t perform that action at this time.