File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -745,7 +745,7 @@ that are special: each adds a unique piece of functionality inside your applicat
745745``_locale ``
746746 Used to set the locale on the request (:ref: `read more <translation-locale-url >`).
747747
748- You can also use special attributes to configure them:
748+ You can also use special attributes to configure them (except `` _fragment ``) :
749749
750750.. configuration-block ::
751751
@@ -761,7 +761,6 @@ You can also use special attributes to configure them:
761761 * "/articles/{_locale}/search.{_format}",
762762 * locale="en",
763763 * format="html",
764- * fragment="first-result-id",
765764 * requirements={
766765 * "_locale": "en|fr",
767766 * "_format": "html|xml",
@@ -802,7 +801,6 @@ You can also use special attributes to configure them:
802801
803802 <requirement key =" _locale" >en|fr</requirement >
804803 <requirement key =" _format" >html|rss</requirement >
805- <requirement key =" year" >\d+</requirement >
806804
807805 </route >
808806 </routes >
@@ -822,11 +820,12 @@ You can also use special attributes to configure them:
822820 ->requirements([
823821 '_locale' => 'en|fr',
824822 '_format' => 'html|rss',
825- 'year' => '\d+',
826823 ])
827824 ;
828825 };
829826
827+ Those attributes can also be used for imports.
828+
830829.. versionadded ::
831830
832831 The special attributes has been introduced in Symfony 4.3.
You can’t perform that action at this time.
0 commit comments