From 067441456e2f7f408db563dc459078d235485b51 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 12 Aug 2019 17:36:54 +0200 Subject: [PATCH] Use PSR-13 implementation from WebLink component --- components/web_link.rst | 4 ++-- mercure.rst | 4 ++-- web_link.rst | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/web_link.rst b/components/web_link.rst index 634da8b81b7..7d30b4775e7 100644 --- a/components/web_link.rst +++ b/components/web_link.rst @@ -22,9 +22,9 @@ Usage The following example shows the component in action:: - use Fig\Link\GenericLinkProvider; - use Fig\Link\Link; use Symfony\Component\WebLink\HttpHeaderSerializer; + use Symfony\Component\WebLink\GenericLinkProvider; + use Symfony\Component\WebLink\Link; $linkProvider = (new GenericLinkProvider()) ->withLink(new Link('preload', '/bootstrap.min.css')); diff --git a/mercure.rst b/mercure.rst index 6c8ba2f8fed..3768ecd09f5 100644 --- a/mercure.rst +++ b/mercure.rst @@ -283,10 +283,10 @@ by using the ``AbstractController::addLink`` helper method:: // src/Controller/DiscoverController.php namespace App\Controller; - use Fig\Link\Link; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; + use Symfony\Component\WebLink\LInk; class DiscoverController extends AbstractController { @@ -383,12 +383,12 @@ And here is the controller:: // src/Controller/DiscoverController.php namespace App\Controller; - use Fig\Link\Link; use Lcobucci\JWT\Builder; use Lcobucci\JWT\Signer\Hmac\Sha256; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; + use Symfony\Component\WebLink\Link; class DiscoverController extends AbstractController { diff --git a/web_link.rst b/web_link.rst index 5630223d82b..73700e1c99e 100644 --- a/web_link.rst +++ b/web_link.rst @@ -145,10 +145,10 @@ You can also add links to the HTTP response directly from controllers and servic // src/Controller/BlogController.php namespace App\Controller; - use Fig\Link\GenericLinkProvider; - use Fig\Link\Link; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; + use Symfony\Component\WebLink\GenericLinkProvider; + use Symfony\Component\WebLink\Link; class BlogController extends AbstractController { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy