Skip to content

Commit 2949725

Browse files
committed
Reword
1 parent 7aad004 commit 2949725

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

messenger.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,12 +1981,12 @@ Other Middlewares
19811981

19821982
.. versionadded:: 5.3
19831983

1984-
The ``router_context`` middleware were introduced in Symfony 5.3.
1984+
The ``router_context`` middleware was introduced in Symfony 5.3.
19851985

1986-
When the consumer needs to build an absolute URL, for instance: rendering a
1987-
template with links, it needs the initial's request context in order to
1988-
retrieves the domain and information needed to build the URL. This can be
1989-
achieved by declaring the ``router_context`` middleware in the bus.
1986+
Add the ``router_context`` middleware if you need to generate absolute URLs in
1987+
the consumer (e.g. render a template with links). This middleware stores the
1988+
original request context (i.e. the host, the HTTP port, etc.) which is needed
1989+
when building absolute URLs.
19901990

19911991
.. configuration-block::
19921992

0 commit comments

Comments
 (0)