Added shortcut to use dialog helper

This commit is contained in:
William DURAND 2011-06-22 17:27:28 +02:00
commit 096faad24a

View file

@ -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);
}
}