This repository was archived by the owner on Feb 13, 2023. It is now read-only.
File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,13 @@ public function addVagrantfile(Event $event) {
66
66
$ this ->io ->writeError (
67
67
'<warning> '
68
68
. '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"
70
73
. '</warning> '
71
74
);
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> ' );
74
76
}
75
77
}
76
78
}
@@ -85,6 +87,6 @@ private function isLegacyVagrantfile($vagrantfile) {
85
87
if (!file_exists ($ vagrantfile )) {
86
88
return false ;
87
89
}
88
- return strpos (file_get_contents ($ vagrantfile ), '# Load the real Vagrantfile ' ) !== FALSE ;
90
+ return strpos (file_get_contents ($ vagrantfile ), '# Load the real Vagrantfile ' ) !== false ;
89
91
}
90
92
}
You can’t perform that action at this time.
0 commit comments