laminas / laminas-component-installer

Composer plugin for injecting modules and configuration providers into application configuration
https://docs.laminas.dev/laminas-component-installer/
BSD 3-Clause "New" or "Revised" License
27 stars 12 forks source link

Component exclude list #33

Closed boesing closed 2 years ago

boesing commented 3 years ago

Feature Request

Q A
New Feature yes
BC Break no

Summary

Currently, there is the component-whitelist feature. I'd like to have an exclude list as well so I can exclude packages I do have to require so that e.g. psalm is not crashing.

Thats actually the case when depending on laminas-validator which has a laminas-db validator but does not require laminas-db directly. When psalm parses that file, psalm crashes. So I have to require laminas-db even tho I do not work with that component. Furthermore, I only add laminas-db as dev-dependency.

So maybe this feature request could also be converted to something like "do not prompt for components which are required as dev-dependency"?