Skip to content

Commit

Permalink
Merge pull request #40 from a328496647/master
Browse files Browse the repository at this point in the history
在QiniuAdapter中增加getUrl方法以实现filesystem的Storage::url接口
  • Loading branch information
zgldh authored Jul 27, 2017
2 parents 1651af3 + 5b62d96 commit 5b66993
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/QiniuAdapter.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,17 @@ public function downloadUrl($path = null, $domainType = 'default')

return $location;
}

/**
* @DriverFunction
* @param null $path
* @param string $domainType
* @return string
*/
public function getUrl($path = null, $domainType = 'default')
{
return $this->downloadUrl($path, $domainType)->getUrl();
}

/**
* @DriverFunction
Expand Down

0 comments on commit 5b66993

Please sign in to comment.