``if (!$noConfirmation && $input->isInteractive()) {`` should be used, to avoid asking confirmation when the command has been launched with a ``--no-interaction`` flag (the DialogHelper only knows about this flag in Symfony master, not in 2.3)