public function v($obj, $path, $def = '') { if (!$obj) { return $def; } return ArrayUtils::getPath($obj, $path, $def); }
public static function get($path, $def = null) { $result = ArrayUtils::getPath(static::$config, $path); if ($result) { return $result; } else { return $def; } }