File tree 1 file changed +3
-4
lines changed
Filter options
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
745
745
``_locale ``
746
746
Used to set the locale on the request (:ref: `read more <translation-locale-url >`).
747
747
748
- You can also use special attributes to configure them:
748
+ You can also use special attributes to configure them (except `` _fragment ``) :
749
749
750
750
.. configuration-block ::
751
751
@@ -761,7 +761,6 @@ You can also use special attributes to configure them:
761
761
* "/articles/{_locale}/search.{_format}",
762
762
* locale="en",
763
763
* format="html",
764
- * fragment="first-result-id",
765
764
* requirements={
766
765
* "_locale": "en|fr",
767
766
* "_format": "html|xml",
@@ -802,7 +801,6 @@ You can also use special attributes to configure them:
802
801
803
802
<requirement key =" _locale" >en|fr</requirement >
804
803
<requirement key =" _format" >html|rss</requirement >
805
- <requirement key =" year" >\d+</requirement >
806
804
807
805
</route >
808
806
</routes >
@@ -822,11 +820,12 @@ You can also use special attributes to configure them:
822
820
->requirements([
823
821
'_locale' => 'en|fr',
824
822
'_format' => 'html|rss',
825
- 'year' => '\d+',
826
823
])
827
824
;
828
825
};
829
826
827
+ Those attributes can also be used for imports.
828
+
830
829
.. versionadded ::
831
830
832
831
The special attributes has been introduced in Symfony 4.3.
You can’t perform that action at this time.
0 commit comments