File tree Expand file tree Collapse file tree 9 files changed +38
-21
lines changed Expand file tree Collapse file tree 9 files changed +38
-21
lines changed Original file line number Diff line number Diff line change 11Yii Framework 2 Symfony mailer extension Change Log
22================================================
33
4- 3.0.0 under development
4+ 3.0.0 December 05, 2022
55-----------------------
66
7- - Enh #27 : Extensive rewrite to make it more statically typed and better testable (sammousa)
87- Enh #22 : Added an exception if there is no transport configuration (Krakozaber)
8+ - Enh #27 : Extensive rewrite to make it more statically typed and better testable (sammousa)
9+
910
10-
11112.0.4 September 04, 2022
1212------------------------
1313
Original file line number Diff line number Diff line change 11<?php
2-
2+ /**
3+ * @link https://www.yiiframework.com/
4+ * @copyright Copyright (c) 2008 Yii Software LLC
5+ * @license https://www.yiiframework.com/license/
6+ */
37declare (strict_types=1 );
48
59namespace yii \symfonymailer ;
1317class DkimMessageSigner implements MessageSignerInterface
1418{
1519 private DkimSigner $ dkimSigner ;
16-
1720 public function __construct (DkimSigner $ dkimSigner )
1821 {
1922 $ this ->dkimSigner = $ dkimSigner ;
Original file line number Diff line number Diff line change @@ -28,27 +28,22 @@ class Mailer extends BaseMailer
2828 */
2929 public $ messageClass = Message::class;
3030
31- private ?SymfonyMailer $ symfonyMailer = null ;
3231
32+ private ?SymfonyMailer $ symfonyMailer = null ;
3333 /**
3434 * @see https://symfony.com/doc/current/mailer.html#encrypting-messages
3535 */
3636 public ?MessageEncrypterInterface $ encrypter = null ;
37-
3837 /**
3938 * @see https://symfony.com/doc/current/mailer.html#signing-messages
4039 */
4140 public ?MessageSignerInterface $ signer = null ;
42-
4341 public array $ signerOptions = [];
44-
4542 /**
4643 * @var null|TransportInterface Symfony transport instance or its array configuration.
4744 */
4845 private ?TransportInterface $ _transport = null ;
49-
5046 public ?Transport $ transportFactory = null ;
51-
5247 /**
5348 * Creates Symfony mailer instance.
5449 * @return SymfonyMailer mailer instance.
Original file line number Diff line number Diff line change 44 * @copyright Copyright (c) 2008 Yii Software LLC
55 * @license https://www.yiiframework.com/license/
66 */
7- declare (strict_types=1 );
87
98namespace yii \symfonymailer ;
109
2120 * @psalm-suppress PropertyNotSetInConstructor
2221 * @psalm-type PsalmFileOptions array{fileName?: string, contentType?: string}
2322 * @psalm-type PsalmAddressList array<int|string, string>|string
23+ *
24+ * @property PsalmAddressList $bcc The type defined by the message interface is not strict enough.
25+ * @property-read Email $symfonyEmail Symfony email instance.
26+ *
2427 */
2528class Message extends BaseMessage implements MessageWrapperInterface
2629{
2730 private Email $ email ;
28-
2931 private string $ charset = 'utf-8 ' ;
30-
3132 public function __construct (array $ config = [])
3233 {
3334 $ this ->email = new Email ();
Original file line number Diff line number Diff line change 11<?php
2-
2+ /**
3+ * @link https://www.yiiframework.com/
4+ * @copyright Copyright (c) 2008 Yii Software LLC
5+ * @license https://www.yiiframework.com/license/
6+ */
37declare (strict_types=1 );
48
59namespace yii \symfonymailer ;
Original file line number Diff line number Diff line change 11<?php
2-
2+ /**
3+ * @link https://www.yiiframework.com/
4+ * @copyright Copyright (c) 2008 Yii Software LLC
5+ * @license https://www.yiiframework.com/license/
6+ */
37declare (strict_types=1 );
48
59namespace yii \symfonymailer ;
Original file line number Diff line number Diff line change 11<?php
2-
2+ /**
3+ * @link https://www.yiiframework.com/
4+ * @copyright Copyright (c) 2008 Yii Software LLC
5+ * @license https://www.yiiframework.com/license/
6+ */
37declare (strict_types=1 );
48
59namespace yii \symfonymailer ;
Original file line number Diff line number Diff line change 11<?php
2-
2+ /**
3+ * @link https://www.yiiframework.com/
4+ * @copyright Copyright (c) 2008 Yii Software LLC
5+ * @license https://www.yiiframework.com/license/
6+ */
37declare (strict_types=1 );
48
59namespace yii \symfonymailer ;
1317class SMimeMessageEncrypter implements MessageEncrypterInterface
1418{
1519 private SMimeEncrypter $ encrypter ;
16-
1720 public function __construct (SMimeEncrypter $ encrypter )
1821 {
1922 $ this ->encrypter = $ encrypter ;
Original file line number Diff line number Diff line change 11<?php
2-
2+ /**
3+ * @link https://www.yiiframework.com/
4+ * @copyright Copyright (c) 2008 Yii Software LLC
5+ * @license https://www.yiiframework.com/license/
6+ */
37declare (strict_types=1 );
48
59namespace yii \symfonymailer ;
1317class SMimeMessageSigner implements MessageSignerInterface
1418{
1519 private SMimeSigner $ signer ;
16-
1720 public function __construct (SMimeSigner $ signer )
1821 {
1922 $ this ->signer = $ signer ;
You can’t perform that action at this time.
0 commit comments