File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1981,12 +1981,12 @@ Other Middlewares
1981
1981
1982
1982
.. versionadded :: 5.3
1983
1983
1984
- The ``router_context `` middleware were introduced in Symfony 5.3.
1984
+ The ``router_context `` middleware was introduced in Symfony 5.3.
1985
1985
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 .
1990
1990
1991
1991
.. configuration-block ::
1992
1992
You can’t perform that action at this time.
0 commit comments