Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9be1cd7

Browse filesBrowse files
committed
minor #19536 [Asset] Replace RemoteJsonManifestVersionStrategy by JsonManifestVersionStrategy (alamirault)
This PR was merged into the 6.4 branch. Discussion ---------- [Asset] Replace `RemoteJsonManifestVersionStrategy` by `JsonManifestVersionStrategy` `RemoteJsonManifestVersionStrategy` was deprecated in 5.3 and removed in 6.0 symfony/symfony#39484 This is the last PR which fix broken `:class:` links Commits ------- 3e2ad17 [Asset] Replace RemoteJsonManifestVersionStrategy by JsonManifestVersionStrategy
2 parents 35a7d28 + 3e2ad17 commit 9be1cd7
Copy full SHA for 9be1cd7

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎components/asset.rst

Copy file name to clipboardExpand all lines: components/asset.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,16 +180,16 @@ listed in the manifest::
180180
// error:
181181

182182
If your JSON file is not on your local filesystem but is accessible over HTTP,
183-
use the :class:`Symfony\\Component\\Asset\\VersionStrategy\\RemoteJsonManifestVersionStrategy`
183+
use the :class:`Symfony\\Component\\Asset\\VersionStrategy\\JsonManifestVersionStrategy`
184184
with the :doc:`HttpClient component </http_client>`::
185185

186186
use Symfony\Component\Asset\Package;
187-
use Symfony\Component\Asset\VersionStrategy\RemoteJsonManifestVersionStrategy;
187+
use Symfony\Component\Asset\VersionStrategy\JsonManifestVersionStrategy;
188188
use Symfony\Component\HttpClient\HttpClient;
189189

190190
$httpClient = HttpClient::create();
191191
$manifestUrl = 'https://cdn.example.com/rev-manifest.json';
192-
$package = new Package(new RemoteJsonManifestVersionStrategy($manifestUrl, $httpClient));
192+
$package = new Package(new JsonManifestVersionStrategy($manifestUrl, $httpClient));
193193

194194
Custom Version Strategies
195195
.........................

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.