Skip to content

Commit 3e4cd5e

Browse files
committed
Tweaks
1 parent dd89fe0 commit 3e4cd5e

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

components/asset.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ In those cases, use the
167167
echo $package->getUrl('css/app.css');
168168
// result: build/css/app.b916426ea1d10021f3f17ce8031f93c2.css
169169

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::
174174

175175
use Symfony\Component\Asset\Package;
176176
use Symfony\Component\Asset\VersionStrategy\JsonManifestVersionStrategy;

reference/configuration/framework.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,12 +2209,13 @@ strict_mode
22092209

22102210
**type**: ``boolean`` **default**: ``false``
22112211

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-
22152212
.. versionadded:: 5.4
22162213

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%``.
22182219

22192220
translator
22202221
~~~~~~~~~~

0 commit comments

Comments
 (0)