Skip to content

Commit 9f81cae

Browse files
committed
minor #10618 [WebLink] Fix composer package and name (dunglas)
This PR was merged into the 3.4 branch. Discussion ---------- [WebLink] Fix composer package and name I made a typo in the composer package name, and there is a problem with a linK Commits ------- 5e9f0ff [WebLink] Fix composer package and name
2 parents ae68ad6 + 5e9f0ff commit 9f81cae

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

components/weblink.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Installation
1313

1414
.. code-block:: terminal
1515
16-
$ composer require symfony/weblink
16+
$ composer require symfony/web-link
1717
1818
Alternatively, you can clone the `<https://github.com/symfony/weblink>`_ repository.
1919

weblink.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Symfony provides native support (via the :doc:`WebLink component </components/we
55
for managing ``Link`` HTTP headers, which are the key to improve the application
66
performance when using HTTP/2 and preloading capabilities of modern web browsers.
77

8-
``Link`` headers are used in `HTTP/2 Server Push`_ and W3C's `Resource Hints`_
9-
to push resources (e.g. CSS and JavaScript files) to clients before they even
10-
know that they need them. WebLink also enables other optimizations that work
11-
with HTTP 1.x:
8+
``Link`` headers are used in `HTTP/2 Server Push`_ and W3C's `Resource Hints
9+
<https://www.w3.org/TR/resource-hints/>`_ to push resources (e.g. CSS and
10+
JavaScript files) to clients before they even know that they need them.
11+
WebLink also enables other optimizations that work with HTTP 1.x:
1212

1313
* Asking the browser to fetch or to render another web page in the background;
1414
* Making early DNS lookups, TCP handshakes or TLS negotiations.
@@ -50,7 +50,7 @@ To do that, first install the WebLink component:
5050

5151
.. code-block:: terminal
5252
53-
$ composer req weblink
53+
$ composer req web-link
5454
5555
Now, update the template to use the ``preload()`` Twig function provided by
5656
WebLink:
@@ -160,7 +160,6 @@ You can also add links to the HTTP response directly from controllers and servic
160160
without requiring the entire Symfony framework.
161161

162162
.. _`HTTP/2 Server Push`: https://tools.ietf.org/html/rfc7540#section-8.2
163-
.. _`Resource Hints`: https://www.w3.org/TR/resource-hints/
164163
.. _`Docker installer and runtime for Symfony`: https://github.com/dunglas/symfony-docker
165164
.. _`preload`: https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content
166165
.. _`the Preload specification`: https://www.w3.org/TR/preload/#server-push-(http/2)

0 commit comments

Comments
 (0)