diff --git a/src/Command/Cache/RebuildCommand.php b/src/Command/Cache/RebuildCommand.php index f5375b563..df3416af7 100644 --- a/src/Command/Cache/RebuildCommand.php +++ b/src/Command/Cache/RebuildCommand.php @@ -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']); } @@ -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); - } - } }