예제 #1
0
function cfg($path = null)
{
    $path = is_array($path) ? $path : func_get_args();
    return \Onion\Config::get($path);
}
예제 #2
0
파일: manager.php 프로젝트: neoisldl/Onion
 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) . ']');
     }
 }