8000 Misc fixes · symfony/symfony-docs@981e82d · GitHub
[go: up one dir, main page]

Skip to content

Commit 981e82d

Browse files
committed
Misc fixes
1 parent a02f3b3 commit 981e82d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

frontend/custom_version_strategy.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ How to Use a Custom Version Strategy for Assets
1010
Asset versioning is a technique that improves the performance of web
1111
applications by adding a version identifier to the URL of the static assets
1212
(CSS, JavaScript, images, etc.) When the content of the asset changes, its
13-
identifier is also modified to force the browser download it again instead of
13+
identifier is also modified to force the browser to download it again instead of
1414
reusing the cached asset.
1515

1616
Symfony supports asset versioning thanks to the
@@ -103,16 +103,14 @@ version string::
103103

104104
private function loadManifest(array $options)
105105
{
106-
$hashes = json_decode(file_get_contents($this->manifestPath), true);
107-
108-
return $hashes;
106+
return json_decode(file_get_contents($this->manifestPath), true);
109107
}
110108
}
111109

112110
Register the Strategy Service
113111
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114112

115-
After creating the strategy PHP class, register it as a Symfony service
113+
After creating the strategy PHP class, register it as a Symfony service.
116114

117115
.. configuration-block::
118116

@@ -186,7 +184,7 @@ the :ref:`version_strategy <reference-framework-assets-version_strategy>` option
186184
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
187185
188186
<framework:con 8000 fig>
189-
<framework:assets version_strategy="app.assets.versioning.gulp_buster" />
187+
<framework:assets version-strategy="app.assets.versioning.gulp_buster" />
190188
</framework:config>
191189
</container>
192190

reference/configuration/framework.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ version_strategy
11421142

11431143
**type**: ``string`` **default**: null
11441144

1145-
The service id of the :doc:`asset version strategy </frontend/custom_version:strategy>`
1145+
The service id of the :doc:`asset version strategy </frontend/custom_version_strategy>`
11461146
applied to the assets.
11471147

11481148
templating

0 commit comments

Comments
 (0)
0