Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Recommend composer config command
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Apr 24, 2017
1 parent 432f19b commit df17e38
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions composer/src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ public function addVagrantfile(Event $event) {
$this->io->writeError(
'<warning>'
. 'Drupal VM has been updated and consequently written over your Vagrantfile which from now on will be managed by Drupal VM. '
. 'Due to this change, you are required to set your `config_dir` location in your composer.json file. Below follows the necessary change:'
. 'Due to this change, you are required to set the `config_dir` location in your composer.json file:'
. "\n"
. "\n $ composer config extra.drupalvm.config_dir <sub-directory>"
. "\n"
. '</warning>'
);
$this->io->writeError('');
$this->io->writeError(json_encode(['extra' => ['drupalvm' => ['config_dir' => '<sub-directory>']]], JSON_PRETTY_PRINT));
}
}
}
Expand All @@ -85,6 +86,6 @@ private function isLegacyVagrantfile($vagrantfile) {
if (!file_exists($vagrantfile)) {
return false;
}
return strpos(file_get_contents($vagrantfile), '# Load the real Vagrantfile') !== FALSE;
return strpos(file_get_contents($vagrantfile), '# Load the real Vagrantfile') !== false;
}
}

0 comments on commit df17e38

Please sign in to comment.