Skip to content

Commit 78c0441

Browse files
committed
Tweaks
1 parent fc57261 commit 78c0441

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

messenger.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,22 +1309,23 @@ during a request::
13091309
}
13101310
}
13111311

1312+
The transport has a number of options:
1313+
1314+
``serialize`` (boolean, default: ``false``)
1315+
Whether to serialize messages or not. This is useful to test an additional
1316+
layer, especially when you use your own message serializer.
1317+
1318+
.. versionadded:: 5.3
1319+
1320+
The ``serialize`` option was introduced in Symfony 5.3.
1321+
13121322
.. note::
13131323

13141324
All ``in-memory`` transports will be reset automatically after each test **in**
13151325
test classes extending
13161326
:class:`Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase`
13171327
or :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase`.
13181328

1319-
.. tip::
1320-
1321-
Using ``in-memory://?serialize=true`` as dsn will perform message serialization as real asynchronous transport will do.
1322-
Useful to test an additional layer, especially when you use your own message serializer.
1323-
1324-
.. versionadded:: 5.3
1325-
1326-
The ``in-memory://?serialize=true`` dsn was introduced in Symfony 5.3.
1327-
13281329
Amazon SQS
13291330
~~~~~~~~~~
13301331

0 commit comments

Comments
 (0)