Skip to content

Commit

Permalink
Set all as default value. Remove interact mode, because we do not nee…
Browse files Browse the repository at this point in the history
…d anymore (#3834)
  • Loading branch information
LOBsTerr authored and jmolivas committed Mar 21, 2018
1 parent dbfc97c commit adb8174
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions src/Command/Cache/RebuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ protected function configure()
->addArgument(
'cache',
InputArgument::OPTIONAL,
$this->trans('commands.cache.rebuild.options.cache')
$this->trans('commands.cache.rebuild.options.cache'),
'all'
)->setAliases(['cr']);
}

Expand Down Expand Up @@ -112,22 +113,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
return 0;
}

/**
* {@inheritdoc}
*/
protected function interact(InputInterface $input, OutputInterface $output)
{
$cache = $input->getArgument('cache');
if (!$cache) {
$cacheKeys = array_keys($this->drupalApi->getCaches());

$cache = $this->getIo()->choiceNoList(
$this->trans('commands.cache.rebuild.questions.cache'),
$cacheKeys,
'all'
);

$input->setArgument('cache', $cache);
}
}
}

0 comments on commit adb8174

Please sign in to comment.