/** @inheritdoc */ public static function overrideValue($section, $key, $value) { static::setConfig(); if ($section !== null && !static::$config->containsKey($section)) { static::$config[$section] = new ArrayCollection(); } if (ArrayCollection::isTraversable($value)) { $value = ArrayCollection::createRecursive($value); } if ($section === null) { static::$config[$key] = $value; } else { static::$config[$section]->set($key, $value); } }
protected function isTraversable($key) { return $this->doExists($key) && ArrayCollection::isTraversable($this->data[$key]); }