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