Skip to content

Commit 7b09de0

Browse files
committed
Added another example showing how the version strategy is inherited
1 parent 029be56 commit 7b09de0

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

reference/configuration/framework.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,11 +1108,14 @@ individually for each asset package:
11081108
version_strategy: 'app.asset.my_versioning_strategy'
11091109
packages:
11101110
foo_package:
1111-
# this makes the assets of this package to not be versioned
1111+
# this package removes any versioning (its assets won't be versioned)
11121112
version: ~
11131113
bar_package:
1114-
# this package doesn't use the global versioning strategy
1114+
# this package uses its own strategy (the default strategy is ignored)
11151115
version_strategy: 'app.asset.another_version_strategy'
1116+
baz_package:
1117+
# this package inherits the default strategy
1118+
base_path: '/images'
11161119
11171120
.. code-block:: xml
11181121
@@ -1132,6 +1135,9 @@ individually for each asset package:
11321135
<framework:package
11331136
name="bar_package"
11341137
version-strategy="app.asset.another_version_strategy" />
1138+
<framework:package
1139+
name="baz_package"
1140+
base_path="/images" />
11351141
</framework:assets>
11361142
</framework:config>
11371143
</container>
@@ -1151,6 +1157,10 @@ individually for each asset package:
11511157
// ...
11521158
'version_strategy' => 'app.asset.another_version_strategy',
11531159
),
1160+
'baz_package' => array(
1161+
// ...
1162+
'base_path' => '/images',
1163+
),
11541164
),
11551165
),
11561166
));

0 commit comments

Comments
 (0)