Skip to content

Commit

Permalink
Merge pull request #4 from Jasongzj/master
Browse files Browse the repository at this point in the history
add getUrl plugins
  • Loading branch information
overtrue authored Jul 6, 2020
2 parents 270ec51 + 688ab84 commit e4be7f6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Plugins/FileUrl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php


namespace Overtrue\Flysystem\Cos\Plugins;

use League\Flysystem\Plugin\AbstractPlugin;

class FileUrl extends AbstractPlugin
{
public function getMethod()
{
return 'getUrl';
}

public function handle($path)
{
return $this->filesystem->getAdapter()->getUrl($path);
}
}

0 comments on commit e4be7f6

Please sign in to comment.