protected function stepAgreeCollectEnv()
{
if ($this->noInteraction) {
return;
}
$this->warn(PHP_EOL . 'Try to collect environmental information for debugging from server of XE installed.' . PHP_EOL . 'Your personal information will not be collected.');
$answer = $this->askValidation('Do you agree to collect your system environmental information?', 'yes', function ($value) {
if (!in_array($value, ['yes', 'no'])) {
throw new \Exception('Input only yes or no.');
}
return $value === 'yes';
});
if ($answer === true) {
app('xe.plugin.news_client')->getHandler()->setAgree(true);
}
}