Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 36 additions & 3 deletions components/notifier.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,40 @@ Installation
Usage
-----

.. caution::
Transport
---------

We're still working on the docs of this component. Check this page again
in a few days.
Every Notification, Text or Chat Message needs a Transport in order to be delivered.

There are implement Transports for Slack, Twilio, Nexmo and Telegram.

You can create a Transport by implementing the TransportInterface.

For example you can send a Chat Message to a Slack Transport::

$slackTransport = new SlackTransport(
'xxxx-xxxxxxxxx-xxxx',
'C1234567890',
new CurlHttpClient()
);
$chatMessage = new ChatMessage('Contribute to Symfony! It\'s fun and a great experience.');
$slackTransport->send($chatMessage);

Notifier
--------


Chatter
-------

Texter
------

Channel
-------

Message
-------

Recipient
---------