-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[AssetMapper] Allow adding integrity metadata to importmaps #60378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 7.4
Are you sure you want to change the base?
Conversation
37d5d36
to
4648474
Compare
If you want to check, started some work was done here #58722 (and was waiting for people to step in and help, so really glad you did here 👍 ) |
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Outdated
Show resolved
Hide resolved
365d76d
to
f401b42
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
9fd9f8a
to
4d298bf
Compare
f2d138f
to
46efd35
Compare
@@ -52,6 +52,7 @@ public function __construct( | |||
private array $dependencies = [], | |||
private array $fileDependencies = [], | |||
private array $javaScriptImports = [], | |||
public ?string $integrity = null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible i would make it readonly as the digest ere.. so not a ppp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made it readonly
, but why not a ppp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep you're right, it's in fact the exact opposite situation that generated problems, when we after we added no porperties on one of the cached class... many people had problems during upgrade.
😶
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure to understand, but if old MappedAsset
s are serialized in a cache, accessing their new $integrity
property would crash; is that what we must be guarding from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that was that, proof i'm not clear in my head about this.
But yeah, should be attnetive that really was cause of frustrations for users.
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Outdated
Show resolved
Hide resolved
9f28569
to
33b4561
Compare
Takes over #58722 because I missed it existed..!