public function getCfg($path = null)
    {
        if (!\strlen($path)) {
            return $this->cfg;
        }
        if (isset($this->cfg[$path])) {
            return $this->cfg[$path];
        }
        return null;
    }