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

Commit c88d57e

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

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

composer/src/Plugin.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,13 @@ 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));
75+
$this->io->writeError('<warning></warning>');
7476
}
7577
}
7678
}
@@ -85,6 +87,6 @@ private function isLegacyVagrantfile($vagrantfile) {
8587
if (!file_exists($vagrantfile)) {
8688
return false;
8789
}
88-
return strpos(file_get_contents($vagrantfile), '# Load the real Vagrantfile') !== FALSE;
90+
return strpos(file_get_contents($vagrantfile), '# Load the real Vagrantfile') !== false;
8991
}
9092
}

0 commit comments

Comments
 (0)