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 981e82d

Browse filesBrowse files
committed
Misc fixes
1 parent a02f3b3 commit 981e82d
Copy full SHA for 981e82d

File tree

Expand file treeCollapse file tree

2 files changed

+5
-7
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-7
lines changed
Open diff view settings
Collapse file

‎frontend/custom_version_strategy.rst‎

Copy file name to clipboardExpand all lines: frontend/custom_version_strategy.rst
+4-6Lines changed: 4 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
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:config>
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
Collapse file

‎reference/configuration/framework.rst‎

Copy file name to clipboardExpand all lines: reference/configuration/framework.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.