Added shortcut to use dialog helper
This commit is contained in:
parent
35a56e8ca8
commit
096faad24a
1 changed files with 13 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue