Skip to content

Commit 46d7b69

Browse files
authored
Merge pull request #86 from peter279k/update_composer_path
Update composer path on findComposer
2 parents e22bcc9 + b1b186b commit 46d7b69

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/NewCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,10 @@ protected function getVersion(InputInterface $input)
219219
*/
220220
protected function findComposer()
221221
{
222-
if (file_exists(getcwd().'/composer.phar')) {
223-
return '"'.PHP_BINARY.'" composer.phar';
222+
$composerPath = getcwd().'/composer.phar';
223+
224+
if (file_exists($composerPath)) {
225+
return '"'.PHP_BINARY.'" '.$composerPath;
224226
}
225227

226228
return 'composer';

0 commit comments

Comments
 (0)