psliwa / idea-composer-plugin

PhpStorm plugin that adds code completion in composer.json file
MIT License
334 stars 10 forks source link

How can I pass parameters to composer #54

Closed SyuTingSong closed 6 years ago

SyuTingSong commented 6 years ago

I am using develop server with whole php extensions while only a few extensions installed on my PC. I want to pass option --ignore-platform-reqs to the composer when updating and installing. I tried to write the such option in composer command but it reports that "Executable 'composer --ignore-platform-reqs' was not found in $PATH".

How can I pass parameters to composer?

psliwa commented 6 years ago

Hi, I don't fully understand: are you asking about how to add such option to composer.json plugin configuration and use this option eg. while packages installation triggered by the plugin?

SyuTingSong commented 6 years ago

Yes, I want to get somewhere to set some options that can be passed to the composer command when installing and updating dependencies with the plugin.

psliwa commented 6 years ago

It will be available in the next release. There is new "composer update" options tab in the plugin configuration.