From 096faad24a9f7bd2da328984b7f718c9c578757a Mon Sep 17 00:00:00 2001 From: William DURAND Date: Wed, 22 Jun 2011 17:27:28 +0200 Subject: [PATCH] Added shortcut to use dialog helper --- Command/PhingCommand.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Command/PhingCommand.php b/Command/PhingCommand.php index 2b79c15..76672ca 100644 --- a/Command/PhingCommand.php +++ b/Command/PhingCommand.php @@ -160,7 +160,11 @@ abstract class PhingCommand extends ContainerAwareCommand $returnStatus = false; } - ob_end_clean(); + if ($bufferPhingOutput) { + ob_end_clean(); + } else { + ob_end_flush(); + } chdir($kernel->getRootDir()); @@ -345,4 +349,12 @@ EOT; '', )); } + + /** + * {@inheritdoc} + */ + public function askConfirmation(OutputInterface $output, $question, $default = null) + { + return $this->getHelperSet()->get('dialog')->askConfirmation($output, $question, $default); + } }