File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -173,13 +173,12 @@ not listed in the manifest::
173
173
use Symfony\Component\Asset\Package;
174
174
use Symfony\Component\Asset\VersionStrategy\JsonManifestVersionStrategy;
175
175
176
- // The value of $strict can be specific per environment "true" for debugging and "false" for stability.
176
+ // The value of $strict can be specific per environment: "true" for debugging and "false" for stability.
177
177
$strict = true;
178
- // assumes the JSON file above is called "rev-manifest.json"
179
- $package = new Package(new JsonManifestVersionStrategy(__DIR__.'/rev-manifest.json'), $strict);
178
+ $package = new Package(new JsonManifestVersionStrategy(__DIR__.'/manifest.json'), $strict);
180
179
181
- echo $package->getUrl('not-found .css');
182
- // error:
180
+ echo $package->getUrl('css/other .css');
181
+ // error: Asset "css/other.css" not found in manifest "/path/to/manifest.json".
183
182
184
183
.. versionadded :: 5.2
185
184
You can’t perform that action at this time.
0 commit comments