X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FCache%2FRebuildCommand.php;fp=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FCache%2FRebuildCommand.php;h=df3416af70c76218216dc7eb1480f3417c42b387;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=f5375b563506af8459a162d45a4625fb18c10881;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/drupal/console/src/Command/Cache/RebuildCommand.php b/vendor/drupal/console/src/Command/Cache/RebuildCommand.php index f5375b563..df3416af7 100644 --- a/vendor/drupal/console/src/Command/Cache/RebuildCommand.php +++ b/vendor/drupal/console/src/Command/Cache/RebuildCommand.php @@ -71,7 +71,8 @@ class RebuildCommand extends Command ->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 @@ class RebuildCommand extends Command 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); - } - } }