- Core\Config::load($this->getArgument(0));
-
- if (!is_null($a->config[$this->getArgument(0)])) {
- foreach ($a->config[$this->getArgument(0)] as $k => $x) {
- $this->out("{$this->getArgument(0)}.{$k} = " . $x);
+ $cat = $this->getArgument(0);
+ Core\Config::load($cat);
+
+ if ($a->getConfigCache()->get($cat) !== null) {
+ $this->out("[{$cat}]");
+ $catVal = $a->getConfigCache()->get($cat);
+ foreach ($catVal as $key => $value) {
+ if (is_array($value)) {
+ foreach ($value as $k => $v) {
+ $this->out("{$key}[{$k}] => " . (is_array($v) ? implode(', ', $v) : $v));
+ }
+ } else {
+ $this->out("{$key} => " . $value);
+ }