Skip to content

Commit e60cd0e

Browse files
Nyholmjaviereguiluz
authored andcommitted
Added config reference for router.default_uri
1 parent 84fb7fa commit e60cd0e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

reference/configuration/framework.rst

+9
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ Configuration
190190

191191
* `router`_
192192

193+
* `default_uri`_
193194
* `http_port`_
194195
* `https_port`_
195196
* `resource`_
@@ -1145,6 +1146,14 @@ The type of the resource to hint the loaders about the format. This isn't
11451146
needed when you use the default routers with the expected file extensions
11461147
(``.xml``, ``.yaml``, ``.php``).
11471148

1149+
default_uri
1150+
...........
1151+
1152+
**type**: ``string``
1153+
1154+
The default URI used to generate URLs in a non-HTTP context (see
1155+
:ref:`Generating URLs in Commands <router-generate-urls-commands>`).
1156+
11481157
http_port
11491158
.........
11501159

routing.rst

+2
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,8 @@ If you need to generate URLs dynamically or if you are using pure JavaScript
20552055
code, this solution doesn't work. In those cases, consider using the
20562056
`FOSJsRoutingBundle`_.
20572057

2058+
.. _router-generate-urls-commands:
2059+
20582060
Generating URLs in Commands
20592061
~~~~~~~~~~~~~~~~~~~~~~~~~~~
20602062

0 commit comments

Comments
 (0)