From 3e2ad1796f6c39a90e82008d9c07f53e2173a0f0 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Thu, 8 Feb 2024 18:30:05 +0100 Subject: [PATCH] [Asset] Replace RemoteJsonManifestVersionStrategy by JsonManifestVersionStrategy --- components/asset.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/asset.rst b/components/asset.rst index 5fa966bb85b..5fd760272ff 100644 --- a/components/asset.rst +++ b/components/asset.rst @@ -180,16 +180,16 @@ listed in the manifest:: // error: If your JSON file is not on your local filesystem but is accessible over HTTP, -use the :class:`Symfony\\Component\\Asset\\VersionStrategy\\RemoteJsonManifestVersionStrategy` +use the :class:`Symfony\\Component\\Asset\\VersionStrategy\\JsonManifestVersionStrategy` with the :doc:`HttpClient component `:: use Symfony\Component\Asset\Package; - use Symfony\Component\Asset\VersionStrategy\RemoteJsonManifestVersionStrategy; + use Symfony\Component\Asset\VersionStrategy\JsonManifestVersionStrategy; use Symfony\Component\HttpClient\HttpClient; $httpClient = HttpClient::create(); $manifestUrl = 'https://cdn.example.com/rev-manifest.json'; - $package = new Package(new RemoteJsonManifestVersionStrategy($manifestUrl, $httpClient)); + $package = new Package(new JsonManifestVersionStrategy($manifestUrl, $httpClient)); Custom Version Strategies ......................... 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