function cfg($path = null) { $path = is_array($path) ? $path : func_get_args(); return \Onion\Config::get($path); }
protected function __construct() { if (!($this->config = \Onion\Config::get(self::$config_path))) { throw new StorageError('Storages config not found! Current Path: [' . implode(',', self::$config_path) . ']'); } }