Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d04a328

Browse filesBrowse files
committed
minor #15514 [Routing] Add small improvements (sebpacz)
This PR was merged into the 4.4 branch. Discussion ---------- [Routing] Add small improvements <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 00fe4bc [Routing] Add small improvements
2 parents 454c5fe + 00fe4bc commit d04a328
Copy full SHA for d04a328

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎routing.rst

Copy file name to clipboardExpand all lines: routing.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ and in route imports. Symfony defines some special attributes with the same name
953953
format="html">
954954
955955
<requirement key="_locale">en|fr</requirement>
956-
<requirement key="_format">html|rss</requirement>
956+
<requirement key="_format">html|xml</requirement>
957957
958958
</route>
959959
</routes>
@@ -972,7 +972,7 @@ and in route imports. Symfony defines some special attributes with the same name
972972
->format('html')
973973
->requirements([
974974
'_locale' => 'en|fr',
975-
'_format' => 'html|rss',
975+
'_format' => 'html|xml',
976976
])
977977
;
978978
};
@@ -1662,7 +1662,7 @@ multi-tenant applications) and these parameters can be validated too with
16621662
};
16631663
16641664
In the above example, the ``subdomain`` parameter defines a default value because
1665-
otherwise you need to include a domain value each time you generate a URL using
1665+
otherwise you need to include a subdomain value each time you generate a URL using
16661666
these routes.
16671667

16681668
.. tip::
@@ -1682,7 +1682,7 @@ these routes.
16821682
[],
16831683
['HTTP_HOST' => 'm.example.com']
16841684
// or get the value from some configuration parameter:
1685-
// ['HTTP_HOST' => 'm.' . $client->getContainer()->getParameter('domain')]
1685+
// ['HTTP_HOST' => 'm.'.$client->getContainer()->getParameter('domain')]
16861686
);
16871687

16881688
.. _i18n-routing:
@@ -1813,7 +1813,7 @@ with a locale. This can be done by defining a different prefix for each locale
18131813
->prefix([
18141814
// don't prefix URLs for English, the default locale
18151815
'en' => '',
1816-
'nl' => '/nl'
1816+
'nl' => '/nl',
18171817
])
18181818
;
18191819
};

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.