From df17e382fd812b6d334b87e9049eec51e0b3c4d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Sch=C3=B6ldstr=C3=B6m?= Date: Mon, 24 Apr 2017 10:29:59 -0500 Subject: [PATCH] Recommend composer config command --- composer/src/Plugin.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; } }