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' ); } }