We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcfa1e4 commit f2ebfedCopy full SHA for f2ebfed
templating/formats.rst
@@ -51,7 +51,7 @@ be configured so that ``/about-us`` sets the request format to ``html`` while
51
special ``_format`` placeholder in your route definition::
52
53
/**
54
- * @Route("/{slug}.{_format}", defaults={"_format"="html"})
+ * @Route("/{slug}.{_format}", defaults={"_format"="html"}, requirements={"_format"="html|xml"}))
55
*/
56
public function showAction(Request $request, $slug)
57
{
0 commit comments