Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5175389

Browse files
committed
[Messenger] Mention the transport factory autoconfiguration
1 parent 27dc68d commit 5175389

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

messenger/custom-transport.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ and :class:`Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\Doctrine
132132
Register your Factory
133133
---------------------
134134

135+
Before using your factory, you must register it. If you're using the
136+
:ref:`default services.yaml configuration <service-container-services-load-example>`,
137+
this is already done for you, thanks to :ref:`autoconfiguration <services-autoconfigure>`.
138+
Otherwise, add the following:
139+
135140
.. configuration-block::
136141

137142
.. code-block:: yaml

0 commit comments

Comments
 (0)