craftcms / craft

Composer starter project for Craft CMS.
https://craftcms.com
BSD Zero Clause License
188 stars 91 forks source link

Composer 2.2 - define allow-plugins #75

Closed ostark closed 2 years ago

ostark commented 2 years ago

With Composer 2.2+ composer plugins need a verification https://getcomposer.org/doc/06-config.md#allow-plugins

Consider to add this config section, to avoid the prompt when installing the dependencies the first time:

 "config": {
    "allow-plugins": {
      "yiisoft/yii2-composer": true,
      "craftcms/plugin-installer": true
    }
  }, 
ostark commented 2 years ago

Oh @khalwat was quicker than me! https://github.com/craftcms/craft/commit/d4c3214c120eb9f0dc796a919324925f6bab4283