File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -97,14 +97,19 @@ public function createComposer()
97
97
* Runs composer command
98
98
*
99
99
* @param array $commandParams
100
+ * @param string|null $workingDir
100
101
* @return bool
101
102
* @throws \RuntimeException
102
103
*/
103
- public function runComposerCommand (array $ commandParams )
104
+ public function runComposerCommand (array $ commandParams, $ workingDir = null )
104
105
{
105
106
$ this ->consoleApplication ->resetComposer ();
106
107
107
- $ commandParams [self ::COMPOSER_WORKING_DIR ] = dirname ($ this ->composerJson );
108
+ if ($ workingDir ) {
109
+ $ commandParams [self ::COMPOSER_WORKING_DIR ] = $ workingDir ;
110
+ } else {
111
+ $ commandParams [self ::COMPOSER_WORKING_DIR ] = dirname ($ this ->composerJson );
112
+ }
108
113
109
114
$ input = $ this ->consoleArrayInputFactory ->create ($ commandParams );
110
115
You can’t perform that action at this time.
0 commit comments