Could a Composer plugin modify the version range used by composer require? #11373
-
|
I am curious if there is a way to modify the version (version range) via a plugin that gets added to My goal is to enforce a specific version range (like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
For the latter you can use I don't really see a way to do this sorry. |
Beta Was this translation helpful? Give feedback.
For the latter you can use
--fixedwhen calling require but there's no way to enforce this. Well a plugin I guess could listen to thepre-command-runevent and modify the input to force --fixed to always be set.. But there's no way otherwise to hook into the version resolution.I don't really see a way to do this sorry.