-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
added clean option to assets install command #24216
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
added clean option to assets install command #24216
Conversation
robinlehrmann
commented
Sep 15, 2017
•
edited
Loading
edited
Q | A |
---|---|
Branch? | master |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #24204, #23416 |
License | MIT |
Should probably go into 3.4 as it's a new feature, even though I know why it "broke". |
I'd propose to reverse the flag, and submit it on 3.4, as a new feature, so that people can opt-out if they want (yes, that'd mean keeping the BC break, I know, let's live with that.) |
@@ -58,6 +58,7 @@ protected function configure() | |||
)) | |||
->addOption('symlink', null, InputOption::VALUE_NONE, 'Symlinks the assets instead of copying it') | |||
->addOption('relative', null, InputOption::VALUE_NONE, 'Make relative symlinks') | |||
->addOption('clean', null, InputOption::VALUE_NONE, 'Remove the assets of the bundles that no longer exist') |
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.
@nicolas-grekas suggested the opposite (i.e. having a no-cleanup
option or something similar) which would need to be passed if you do not want to have old assets removed.
@xabbuh Okay, I changed it. Good point 👍 |
Thank you @robinlehrmann. |
…rmann) This PR was merged into the 4.1-dev branch. Discussion ---------- added clean option to assets install command | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24204, #23416 | License | MIT Commits ------- 771f11b added clean option to assets install command