5 * Contains \Drupal\Console\Command\Cron\DebugCommand.
8 namespace Drupal\Console\Command\Cron;
10 use Symfony\Component\Console\Input\InputInterface;
11 use Symfony\Component\Console\Output\OutputInterface;
12 use Symfony\Component\Console\Command\Command;
13 use Drupal\Core\Extension\ModuleHandlerInterface;
14 use Drupal\Console\Core\Command\Shared\CommandTrait;
15 use Drupal\Console\Core\Style\DrupalStyle;
17 class DebugCommand extends Command
22 * @var ModuleHandlerInterface
24 protected $moduleHandler;
27 * DebugCommand constructor.
29 * @param ModuleHandlerInterface $moduleHandler
31 public function __construct(ModuleHandlerInterface $moduleHandler)
33 $this->moduleHandler = $moduleHandler;
34 parent::__construct();
40 protected function configure()
43 ->setName('cron:debug')
44 ->setDescription($this->trans('commands.cron.debug.description'));
50 protected function execute(InputInterface $input, OutputInterface $output)
52 $io = new DrupalStyle($input, $output);
55 $this->trans('commands.cron.debug.messages.module-list')
59 [ $this->trans('commands.cron.debug.messages.module') ],
60 $this->moduleHandler->getImplementations('cron'),