-
Deprecate
TransportFactoryTestCase
, extendAbstractTransportFactoryTestCase
insteadThe
testIncompleteDsnException()
andtestMissingRequiredOptionException()
tests are no longer provided by default. If you make use of them (i.e. by implementing theincompleteDsnProvider()
ormissingRequiredOptionProvider()
data providers), you now need to use theIncompleteDsnTestTrait
orMissingRequiredOptionTestTrait
respectively. -
Make
TransportFactoryTestCase
andTransportTestCase
compatible with PHPUnit 10+ -
Add
Desktop
channel
- Introduce
FromNotificationInterface
forMessageInterface
implementations
- Add PHPUnit constraints
- Add
from
property inSmsMessage
- Use importance level to set flash message type
- [BC BREAK] The following data providers for
TransportTestCase
are now static:toStringProvider()
,supportedMessagesProvider()
andunsupportedMessagesProvider()
- [BC BREAK]
TransportTestCase::createTransport()
is now static
- Add
SentMessageEvent
andFailedMessageEvent
- Add
push
channel
- The component is not marked as
@experimental
anymore - [BC BREAK] Change signature of
Dsn::__construct()
method from:public function __construct(string $scheme, string $host, ?string $user = null, ?string $password = null, ?int $port = null, array $options = [], ?string $path = null)
to:public function __construct(string $dsn)
- [BC BREAK] Remove
Dsn::fromString()
method - [BC BREAK] Changed the return type of
AbstractTransportFactory::getEndpoint()
from?string
tostring
- Added
DSN::getRequiredOption
method which throws a newMissingRequiredOptionException
.
- [BC BREAK] The
TransportInterface::send()
andAbstractTransport::doSend()
methods changed to return a?SentMessage
instance instead ofvoid
. - The
EmailRecipientInterface
andRecipientInterface
were introduced. - Added
email
andphone
properties toRecipient
. - [BC BREAK] Changed the type-hint of the
$recipient
argument in theas*Message()
method ofEmailNotificationInterface
andSmsNotificationInterface
toEmailRecipientInterface
andSmsRecipientInterface
. - [BC BREAK] Removed the
AdminRecipient
. - The
EmailRecipientInterface
andSmsRecipientInterface
now extend theRecipientInterface
. - The
EmailRecipient
andSmsRecipient
were introduced. - [BC BREAK] Changed the type-hint of the
$recipient
argument inNotifierInterface::send()
,Notifier::getChannels()
,ChannelInterface::notifiy()
andChannelInterface::supports()
toRecipientInterface
. - Changed
EmailChannel
to only support recipients which implement theEmailRecipientInterface
. - Changed
SmsChannel
to only support recipients which implement theSmsRecipientInterface
.
- [BC BREAK] The
ChatMessage::fromNotification()
method's$recipient
and$transport
arguments were removed. - [BC BREAK] The
EmailMessage::fromNotification()
andSmsMessage::fromNotification()
methods'$transport
argument was removed.
- Introduced the component as experimental