Skip to content

Commit

Permalink
add getUrl plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
vagrant committed Nov 29, 2019
1 parent 9873840 commit 688ab84
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 688ab84

Please sign in to comment.