settings = $settings; ; parent::__construct(); } /** * {@inheritdoc} */ protected function configure() { $this ->setName('config:settings:debug') ->setDescription($this->trans('commands.config.settings.debug.description')) ->setHelp($this->trans('commands.config.settings.debug.help')); } /** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $io = new DrupalStyle($input, $output); $settingKeys = array_keys($this->settings->getAll()); $io->newLine(); $io->info($this->trans('commands.config.settings.debug.messages.current')); $io->newLine(); foreach ($settingKeys as $settingKey) { $settingValue = $this->settings->get($settingKey); $io->comment($settingKey . ': ', is_array($settingValue)); $io->write(Yaml::encode($settingValue)); } $io->newLine(); } }