private function saveConfiguration(InputInterface $input, OutputInterface $output, Configuration $configuration)
{
if (!$input->isInteractive()) {
$configuration->save();
return;
}
$question = 'Do you want to save this new configuration? [Y/n] ';
if (PHP_VERSION_ID > 50400) {
$question = json_encode($configuration->toArray(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) . "\n\n" . $question;
}
$dialog = $this->getHelperSet()->get('dialog');
if ($dialog->askConfirmation($output, $question)) {
$configuration->save();
}
}