Only show getting started warning for non-global composer load
parent
eb9616a82b
commit
bc31351b5b
|
@ -295,7 +295,7 @@ class Factory
|
||||||
} else {
|
} else {
|
||||||
$message = 'Composer could not find the config file: '.$localConfig;
|
$message = 'Composer could not find the config file: '.$localConfig;
|
||||||
}
|
}
|
||||||
$instructions = 'To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section';
|
$instructions = $fullLoad ? 'To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section' : '';
|
||||||
throw new \InvalidArgumentException($message.PHP_EOL.$instructions);
|
throw new \InvalidArgumentException($message.PHP_EOL.$instructions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue