Esempio n. 1
0
function cfg($path = null)
{
    $path = is_array($path) ? $path : func_get_args();
    return \Onion\Config::get($path);
}
Esempio n. 2
0
 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) . ']');
     }
 }