contao-community-alliance / composer-plugin

Composer plugin that provide contao integration and installer.
GNU Lesser General Public License v3.0
7 stars 10 forks source link

Create backup of composer.json before manipulating it. #2

Closed discordier closed 10 years ago

discordier commented 10 years ago

In https://github.com/contao-community-alliance/composer-plugin/blob/master/src/ContaoCommunityAlliance/Composer/Plugin/ConfigManipulator.php#L54 there should be the creation of an backup copy as in the composer client backend module to keep the previous values available if the writing should fail due to any problems.