ezsystems/ezpublish-kernel — pull request #1040 by andrerom (2014-10-20 13:22:40+00:00)
Title: Add dumpAssetsHelpText for use with composer update

Suggested approach for fixing dx issue with asset dumping and composer update.

Fixes:
- crashes when interfaces or something else needs to be cleared from prod cache
- control over when assets are dumped, as it is not needed on updates of most composer packages

Patch for ezpublish-community:
```diff
diff --git a/composer.json b/composer.json
index 3c4fd1e..b01ba6c 100644
--- a/composer.json
+++ b/composer.json
@@ -91,9 +91,9 @@
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"eZ\\Bundle\\EzPublishLegacyBundle\\Composer\\ScriptHandler::installAssets",
- "eZ\\Bundle\\EzPublishCoreBundle\\Composer\\ScriptHandler::dumpAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
- "eZ\\Bundle\\EzPublishLegacyBundle\\Composer\\ScriptHandler::installLegacyBundlesExtensions"
+ "eZ\\Bundle\\EzPublishLegacyBundle\\Composer\\ScriptHandler::installLegacyBundlesExtensions",
+ "eZ\\Bundle\\EzPublishCoreBundle\\Composer\\ScriptHandler::dumpAssetsHelpText"
]
},
"config": {
```

Note: this does not mean doing composer update in production is safe, such changes should still be staged as you'll often need to also clear prod cache as well. (and this might be a argument for clearing prod cache)