/** * @param StorageConfig $mount * @param string $key * @param OutputInterface $output */ protected function getOption(StorageConfig $mount, $key, OutputInterface $output) { $value = $mount->getMountOption($key); if (!is_string($value)) { // show bools and objects correctly $value = json_encode($value); } $output->writeln($value); }