dg / composer-cleaner

Victor The Cleaner: removes unnecessary files from vendor directory
https://nette.org
134 stars 19 forks source link

Consider using extra section instead of config #11

Closed JanTvrdik closed 7 years ago

JanTvrdik commented 7 years ago

The config key is intended to be used by Composer itself, Composer plugins should use the key extra. Using config key does not currently AFAIK cause any issues, but may cause problems in the future.

See https://getcomposer.org/schema.json:

dg commented 7 years ago

I do not know how to get extra data.

JanTvrdik commented 7 years ago

Looking at Composer repo it looks like $event->getComposer()->getPackage()->getExtra() should work.