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

__construct() public method

构造函数,用于设置上传根路径
public __construct ( array $config )
$config array FTP配置
    public function __construct($config)
    {
        /* 默认FTP配置 */
        $this->config = array_merge($this->config, $config);
        $this->config['password'] = md5($this->config['password']);
    }