File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1150,13 +1150,16 @@ individually for each asset package:
1150
1150
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
1151
1151
1152
1152
<framework : config >
1153
- <framework : assets version_strategy =" app.asset.my_versioning_strategy" >
1153
+ <framework : assets version-strategy =" app.asset.my_versioning_strategy" >
1154
+ <!-- this package removes any versioning (its assets won't be versioned) -->
1154
1155
<framework : package
1155
1156
name =" foo_package"
1156
1157
version =" null" />
1158
+ <!-- this package uses its own strategy (the default strategy is ignored) -->
1157
1159
<framework : package
1158
1160
name =" bar_package"
1159
1161
version-strategy =" app.asset.another_version_strategy" />
1162
+ <!-- this package inherits the default strategy -->
1160
1163
<framework : package
1161
1164
name =" baz_package"
1162
1165
base_path =" /images" />
@@ -1172,15 +1175,15 @@ individually for each asset package:
1172
1175
'version_strategy' => 'app.asset.my_versioning_strategy',
1173
1176
'packages' => array(
1174
1177
'foo_package' => array(
1175
- // ...
1178
+ // this package removes any versioning (its assets won't be versioned)
1176
1179
'version' => null,
1177
1180
),
1178
1181
'bar_package' => array(
1179
- // ...
1182
+ // this package uses its own strategy (the default strategy is ignored)
1180
1183
'version_strategy' => 'app.asset.another_version_strategy',
1181
1184
),
1182
1185
'baz_package' => array(
1183
- // ...
1186
+ // this package inherits the default strategy
1184
1187
'base_path' => '/images',
1185
1188
),
1186
1189
),
You can’t perform that action at this time.
0 commit comments