-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed #19605 Don't static compile disabled modules #19751
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
Fixed #19605 Don't static compile disabled modules #19751
Conversation
Hi @shikhamis11. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@orlangur why "Community Insider: Cedcommerce" label is not added automatically by @magento-engcom-team ? |
@orlangur may I know why you have added "Progress: on hold" label. |
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.
@shikhamis11 looks really clean and nice!
Please apply some minor review notes and do commit amend + force push.
on hold
was to get a small feedback in Slack if there could be some undesired consequences by this change. For example, URL Rewrites are created even for disabled products so that you can enable them later without any collision.
@@ -43,6 +44,13 @@ class Collector implements CollectorInterface | |||
* @var PackageFactory | |||
*/ | |||
private $packageFactory; | |||
|
|||
/** | |||
* Module Manager object |
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.
Such comment is not really useful, please leave type hint only.
@@ -65,11 +73,13 @@ class Collector implements CollectorInterface | |||
public function __construct( | |||
SourcePool $sourcePool, | |||
FileNameResolver $fileNameResolver, | |||
PackageFactory $packageFactory | |||
PackageFactory $packageFactory, | |||
Manager $moduleManager |
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.
Please inject new dependencies in backward-compatible manner: https://devdocs.magento.com/guides/v2.3/contributor-guide/backward-compatible-development/#adding-a-constructor-parameter
@orlangur I have made changes please check |
Fixed issue magento#19605 Don't static compile disabled modules Updated Collector.php Updated Collector.php
5b59c90
to
83f8e98
Compare
Hi @orlangur, thank you for the review. |
Hi @shikhamis11. Thank you for your contribution. |
Fixed issue #19605 Don't static compile disabled modules
Summary
When running static-content:deploy, there are disabled module content in pub/static.
Examples
Disable modules that have frontend resources.
Run bin/magento setup:static-content:deploy
Observe that pub/static/... contains the resources.
Contribution checklist (*)