1
0
Fork 0

Merge pull request #1480 from igorw/create-config-on-require

Implicitly create composer.json in require command
pull/1486/merge
Jordi Boggiano 2013-01-13 07:17:26 -08:00
commit 71435b0b13
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,8 @@ EOT
{
$file = Factory::getComposerFile();
if (!file_exists($file)) {
$output->writeln('<error>'.$file.' not found.</error>');
if (!file_exists($file) && !file_put_contents($file, "{\n}\n")) {
$output->writeln('<error>'.$file.' could not be created.</error>');
return 1;
}