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

Commit df17e38

Browse files
committed
Recommend composer config command
1 parent 432f19b commit df17e38

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

composer/src/Plugin.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ public function addVagrantfile(Event $event) {
6666
$this->io->writeError(
6767
'<warning>'
6868
. 'Drupal VM has been updated and consequently written over your Vagrantfile which from now on will be managed by Drupal VM. '
69-
. 'Due to this change, you are required to set your `config_dir` location in your composer.json file. Below follows the necessary change:'
69+
. 'Due to this change, you are required to set the `config_dir` location in your composer.json file:'
70+
. "\n"
71+
. "\n $ composer config extra.drupalvm.config_dir <sub-directory>"
72+
. "\n"
7073
. '</warning>'
7174
);
72-
$this->io->writeError('');
73-
$this->io->writeError(json_encode(['extra' => ['drupalvm' => ['config_dir' => '<sub-directory>']]], JSON_PRETTY_PRINT));
7475
}
7576
}
7677
}
@@ -85,6 +86,6 @@ private function isLegacyVagrantfile($vagrantfile) {
8586
if (!file_exists($vagrantfile)) {
8687
return false;
8788
}
88-
return strpos(file_get_contents($vagrantfile), '# Load the real Vagrantfile') !== FALSE;
89+
return strpos(file_get_contents($vagrantfile), '# Load the real Vagrantfile') !== false;
8990
}
9091
}

0 commit comments

Comments
 (0)