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

[Messenger] Allow to close the transport connection#20834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:7.3fromMrYamous:20722
Mar 31, 2025
Merged
Changes fromall 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
14 changes: 14 additions & 0 deletionsmessenger.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2254,6 +2254,20 @@ on a case-by-case basis via the :class:`Symfony\\Component\\Messenger\\Stamp\\Se
provides that control. See `SymfonyCasts' message serializer tutorial`_ for
details.

Closing connection
~~~~~~~~~~~~~~~~~~

When using a transport that requires a connection, you can close it using
the :method:`Symfony\\Component\\Messenger\\Transport\\CloseableTransportInterface::close`
method to allow free resources for long-running processes.

This interface is implemented by the following transports: AmazonSqs, Amqp and Redis.
If you want to close a Doctrine connection, this can be achieved :ref:`using middleware <middleware-for-doctrine>`.

.. versionadded:: 7.3

The ``CloseableTransportInterface`` and ``close`` method were introduced in Symfony 7.3.

Running Commands And External Processes
---------------------------------------

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp