org\upload\driver\Sae::__construct PHP Method

__construct() public method

构造函数,设置storage的domain, 如果有传配置,则domain为配置项,如果没有传domain为第一个路径的目录名称。
public __construct ( mixed $config = null )
$config mixed 上传配置
    public function __construct($config = null)
    {
        if (is_array($config) && !empty($config['domain'])) {
            $this->domain = strtolower($config['domain']);
        }
    }