Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 0 additions & 4 deletions controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -747,10 +747,6 @@ there are constraint violations:
)]
UploadedFile $document

.. versionadded:: 7.1

The ``#[MapUploadedFile]`` attribute was introduced in Symfony 7.1.

.. _controller_map-request-header:

Mapping Request Headers
Expand Down
14 changes: 14 additions & 0 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,20 @@ properties in the ``reset()`` method.
If you don't want to reset the container, add the ``--no-reset`` option when
running the ``messenger:consume`` command.

Instead of disabling the reset entirely, you can also configure the reset to
happen every N messages by passing a number to the ``--no-reset`` option. This
is useful when resetting after every message is too expensive, but never
resetting leads to memory leaks or stale state:

.. code-block:: terminal

# reset services every 100 messages instead of after each one
$ php bin/console messenger:consume async --no-reset=100

.. versionadded:: 8.1

The ability to pass a number to the ``--no-reset`` option was introduced in Symfony 8.1.

.. _messenger-retries-failures:

Rate Limited Transport
Expand Down
Loading