Getting a particular installed package object in a Composer command #12314
Unanswered
joachim-n
asked this question in
Q&A / Support
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a custom Composer command in which I'm trying to do something with a particular installed package.
The only way I've found to get a Package object is this:
That seems rather convoluted, especially as I have to specify a constraint when what I want is the package that is currently installed, rather than searching in repositories.
Is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions