Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-core / src / Command / Chain / ChainDebugCommand.php
diff --git a/vendor/drupal/console-core/src/Command/Chain/ChainDebugCommand.php b/vendor/drupal/console-core/src/Command/Chain/ChainDebugCommand.php
deleted file mode 100644 (file)
index f5a7a48..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-
-/**
- * @file
- * Contains \Drupal\Console\Core\Command\Chain\ChainDebugCommand.
- */
-
-namespace Drupal\Console\Core\Command\Chain;
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Command\Command;
-use Drupal\Console\Core\Utils\ChainDiscovery;
-use Drupal\Console\Core\Style\DrupalStyle;
-use Drupal\Console\Core\Command\Shared\CommandTrait;
-
-/**
- * Class ChainDebugCommand
- *
- * @package Drupal\Console\Core\Command\Chain
- */
-class ChainDebugCommand extends Command
-{
-    use CommandTrait;
-
-    /**
-     * @var ChainDiscovery
-     */
-    protected $chainDiscovery;
-
-    /**
-     * ChainDebugCommand constructor.
-     *
-     * @param ChainDiscovery $chainDiscovery
-     */
-    public function __construct(
-        ChainDiscovery $chainDiscovery
-    ) {
-        $this->chainDiscovery = $chainDiscovery;
-
-        parent::__construct();
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    protected function configure()
-    {
-        $this
-            ->setName('chain:debug')
-            ->setDescription($this->trans('commands.chain.debug.description'));
-    }
-
-    /**
-     * {@inheritdoc}
-     */
-    protected function execute(InputInterface $input, OutputInterface $output)
-    {
-        $io = new DrupalStyle($input, $output);
-        $files = $this->chainDiscovery->getChainFiles();
-
-        foreach ($files as $directory => $chainFiles) {
-            $io->info($this->trans('commands.chain.debug.messages.directory'), false);
-            $io->comment($directory);
-
-            $tableHeader = [
-              $this->trans('commands.chain.debug.messages.file')
-            ];
-
-            $tableRows = [];
-            foreach ($chainFiles as $file) {
-                $tableRows[] = $file;
-            }
-
-            $io->table($tableHeader, $tableRows);
-        }
-
-        return 0;
-    }
-}