Skip to content

Commit e3a61f2

Browse files
Symfony 3.3+ compatibility fix
1 parent 7f8ffd7 commit e3a61f2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Command/AbstractCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
1313
use Symfony\Component\Console\Input\InputInterface;
14+
use Symfony\Component\Console\Question\ConfirmationQuestion;
1415
use Symfony\Component\Console\Output\OutputInterface;
1516
use Symfony\Component\Filesystem\Filesystem;
1617
use Symfony\Component\Finder\Finder;
@@ -620,7 +621,7 @@ protected function writeNewDirectory(OutputInterface $output, $directory)
620621
*/
621622
protected function askConfirmation(OutputInterface $output, $question, $default = null)
622623
{
623-
return $this->getHelperSet()->get('dialog')->askConfirmation($output, $question, $default);
624+
return $this->getHelper('question')->ask($this->input, $output, new ConfirmationQuestion($question, $default));
624625
}
625626

626627
/**

0 commit comments

Comments
 (0)