Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7d68082

Browse files
committed
minor#20834 [Messenger] Allow to close the transport connection (MrYamous)
This PR was merged into the 7.3 branch.Discussion----------[Messenger] Allow to close the transport connectionFixes#20722Commits-------89e37c1 messenger: allow to close connection
2 parents29337b2 +89e37c1 commit7d68082

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎messenger.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,6 +2254,20 @@ on a case-by-case basis via the :class:`Symfony\\Component\\Messenger\\Stamp\\Se
22542254
provides that control. See `SymfonyCasts' message serializer tutorial`_ for
22552255
details.
22562256

2257+
Closing connection
2258+
~~~~~~~~~~~~~~~~~~
2259+
2260+
When using a transport that requires a connection, you can close it using
2261+
the:method:`Symfony\\Component\\Messenger\\Transport\\CloseableTransportInterface::close`
2262+
method to allow free resources for long-running processes.
2263+
2264+
This interface is implemented by the following transports: AmazonSqs, Amqp and Redis.
2265+
If you want to close a Doctrine connection, this can be achieved:ref:`using middleware<middleware-for-doctrine>`.
2266+
2267+
..versionadded::7.3
2268+
2269+
The ``CloseableTransportInterface`` and ``close`` method were introduced in Symfony 7.3.
2270+
22572271
Running Commands And External Processes
22582272
---------------------------------------
22592273

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp