File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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+
22572271Running Commands And External Processes
22582272---------------------------------------
22592273
You can’t perform that action at this time.
0 commit comments