moduleHandler = $moduleHandler; parent::__construct(); } /** * {@inheritdoc} */ protected function configure() { $this ->setName('debug:cron') ->setDescription($this->trans('commands.debug.cron.description')) ->setAliases(['dcr']); } /** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $this->getIo()->section( $this->trans('commands.debug.cron.messages.module-list') ); $this->getIo()->table( [ $this->trans('commands.debug.cron.messages.module') ], $this->moduleHandler->getImplementations('cron'), 'compact' ); } }