File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -167,10 +167,10 @@ In those cases, use the
167
167
echo $package->getUrl('css/app.css');
168
168
// result: build/css/app.b916426ea1d10021f3f17ce8031f93c2.css
169
169
170
- If you request an asset that is *not found * in the ``rev-manifest.json `` file, the original -
171
- *unmodified * - asset path will be returned.
172
- The `` $strictMode `` argument helps for debugging as it throws an exception when the asset is
173
- not listed in the manifest::
170
+ If you request an asset that is *not found * in the ``rev-manifest.json `` file,
171
+ the original - *unmodified * - asset path will be returned. The `` $strictMode ``
172
+ argument helps debug issues because it throws an exception when the asset is not
173
+ listed in the manifest::
174
174
175
175
use Symfony\Component\Asset\Package;
176
176
use Symfony\Component\Asset\VersionStrategy\JsonManifestVersionStrategy;
Original file line number Diff line number Diff line change @@ -2209,12 +2209,13 @@ strict_mode
2209
2209
2210
2210
**type **: ``boolean `` **default **: ``false ``
2211
2211
2212
- When enabled, the strict mode assert that all requested assets are in the manifest file.
2213
- This option is useful to detect typo or missing assets, the recommended value is ``%kernel.debug% ``.
2214
-
2215
2212
.. versionadded :: 5.4
2216
2213
2217
- This option was introduced in Symfony 5.4.
2214
+ The ``strict_mode `` option was introduced in Symfony 5.4.
2215
+
2216
+ When enabled, the strict mode asserts that all requested assets are in the
2217
+ manifest file. This option is useful to detect typos or missing assets, the
2218
+ recommended value is ``%kernel.debug% ``.
2218
2219
2219
2220
translator
2220
2221
~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments