public function getDefaultOption($keyOrPath = null) { return $keyOrPath === null ? $this->defaults : Utils::getPath($this->defaults, $keyOrPath); }
public function getConfig($keyOrPath = null) { if ($keyOrPath === null) { return $this->config; } if (strpos($keyOrPath, '/') === false) { return isset($this->config[$keyOrPath]) ? $this->config[$keyOrPath] : null; } return Utils::getPath($this->config, $keyOrPath); }