Skip to content

Commit

Permalink
quickfix dialog Helper issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pscheit committed Jan 8, 2015
1 parent 847b767 commit 7361d12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/inc.commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$createCommand('install:list-parts',
array(),
function ($input, $output, $command) use ($container) {
$interact = new InteractionHelper($command->getHelper('dialog'), $output);
$interact = new InteractionHelper(new \Symfony\Component\Console\Helper\DialogHelper($warnDeprecation = FALSE), $output);
$partsInstaller = $container->getPartsInstaller($interact, new SymfonyCommandOutputAdapter($output));

$output->writeln('<info>parts available:</info>');
Expand Down
2 changes: 1 addition & 1 deletion tests/Webforge/Framework/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static function props() {

protected function getInteractionHelper() {
return new InteractionHelper(
$this->getMock('Symfony\Component\Console\Helper\DialogHelper'),
$this->getMock('Symfony\Component\Console\Helper\DialogHelper', array(), array(false)), // fix deprecation warning
$this->getMock('Symfony\Component\Console\Output\OutputInterface')
);
}
Expand Down

0 comments on commit 7361d12

Please sign in to comment.