Skip to content

Commit e71800a

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Minor tweaks [WebLink] make use of avilable constant
2 parents 92dee53 + ef32707 commit e71800a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web_link.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ You can also add links to the HTTP response directly from controllers and servic
195195
}
196196
}
197197

198+
.. tip::
199+
200+
The possible values of link relations (``'preload'``, ``'preconnect'``, etc.)
201+
are also defined as constants in the :class:`Symfony\\Component\\WebLink\\Link`
202+
class (e.g. ``Link::REL_PRELOAD``, ``Link::REL_PRECONNECT``, etc.).
203+
198204
.. _`WebLink`: https://github.com/symfony/web-link
199205
.. _`HTTP/2 Server Push`: https://tools.ietf.org/html/rfc7540#section-8.2
200206
.. _`Resource Hints`: https://www.w3.org/TR/resource-hints/

0 commit comments

Comments
 (0)