diff --git a/composer/src/Plugin.php b/composer/src/Plugin.php
index 74ce911dc..713ec99b4 100644
--- a/composer/src/Plugin.php
+++ b/composer/src/Plugin.php
@@ -66,11 +66,12 @@ public function addVagrantfile(Event $event) {
$this->io->writeError(
''
. '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 "
+ . "\n"
. ''
);
- $this->io->writeError('');
- $this->io->writeError(json_encode(['extra' => ['drupalvm' => ['config_dir' => '']]], JSON_PRETTY_PRINT));
}
}
}
@@ -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;
}
}