Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drupal / console / src / Command / Cache / RebuildCommand.php
index f5375b563506af8459a162d45a4625fb18c10881..df3416af70c76218216dc7eb1480f3417c42b387 100644 (file)
@@ -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);
-        }
-    }
 }