From 5e9f0ff65f0c2949b797cd0bcc62f8f0edb9cf95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 30 Oct 2018 21:00:59 +0100 Subject: [PATCH] [WebLink] Fix composer package and name --- components/weblink.rst | 2 +- weblink.rst | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/components/weblink.rst b/components/weblink.rst index c8e699484fd..4b29add8467 100644 --- a/components/weblink.rst +++ b/components/weblink.rst @@ -13,7 +13,7 @@ Installation .. code-block:: terminal - $ composer require symfony/weblink + $ composer require symfony/web-link Alternatively, you can clone the ``_ repository. diff --git a/weblink.rst b/weblink.rst index d8e033dbc58..57f1eba6271 100644 --- a/weblink.rst +++ b/weblink.rst @@ -5,10 +5,10 @@ Symfony provides native support (via the :doc:`WebLink component `_ to push resources (e.g. CSS and +JavaScript files) to clients before they even know that they need them. +WebLink also enables other optimizations that work with HTTP 1.x: * Asking the browser to fetch or to render another web page in the background; * Making early DNS lookups, TCP handshakes or TLS negotiations. @@ -50,7 +50,7 @@ To do that, first install the WebLink component: .. code-block:: terminal - $ composer req weblink + $ composer req web-link Now, update the template to use the ``preload()`` Twig function provided by WebLink: @@ -161,7 +161,6 @@ You can also add links to the HTTP response directly from controllers and servic without requiring the entire Symfony framework. .. _`HTTP/2 Server Push`: https://tools.ietf.org/html/rfc7540#section-8.2 -.. _`Resource Hints`: https://www.w3.org/TR/resource-hints/ .. _`Docker installer and runtime for Symfony`: https://github.com/dunglas/symfony-docker .. _`preload`: https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content .. _`the Preload specification`: https://www.w3.org/TR/preload/#server-push-(http/2)