Skip to content
Merged
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
20 changes: 20 additions & 0 deletions notifier.rst
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,26 @@ and
:class:`Symfony\\Component\\Notifier\\Notification\\EmailNotificationInterface`
also exists to modify messages send to those channels.

Development & Debugging
-----------------------

Disabling Delivery
~~~~~~~~~~~~~~~~~~

While developing (or testing), you may want to disable delivery of notifications entirely.
You can do this by forcing Notifier to use the ``NullTransport`` for all configured texter
and chatter transports in only the ``dev`` (or respectively ``test``) environment:

.. code-block:: yaml

# config/packages/dev/notifier.yaml
framework:
notifier:
texter_transports:
twilio: 'null://null'
chatter_transports:
slack: 'null://null'

.. TODO
- Using the message bus for asynchronous notification
- Describe notifier monolog handler
Expand Down