X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FCron%2FDebugCommand.php;fp=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FCron%2FDebugCommand.php;h=7e38a0e300b84b5ad596c04e38ea551c89f97541;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/drupal/console/src/Command/Cron/DebugCommand.php b/vendor/drupal/console/src/Command/Cron/DebugCommand.php new file mode 100644 index 000000000..7e38a0e30 --- /dev/null +++ b/vendor/drupal/console/src/Command/Cron/DebugCommand.php @@ -0,0 +1,66 @@ +moduleHandler = $moduleHandler; + parent::__construct(); + } + + /** + * {@inheritdoc} + */ + protected function configure() + { + $this + ->setName('cron:debug') + ->setDescription($this->trans('commands.cron.debug.description')); + } + + /** + * {@inheritdoc} + */ + protected function execute(InputInterface $input, OutputInterface $output) + { + $io = new DrupalStyle($input, $output); + + $io->section( + $this->trans('commands.cron.debug.messages.module-list') + ); + + $io->table( + [ + $this->trans('commands.cron.debug.messages.module') + ], + $this->moduleHandler->getImplementations('cron'), + 'compact' + ); + } +}