Skip to content

Commit 1c16c74

Browse files
committed
rename class
1 parent a51586c commit 1c16c74

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/FileEntry.php renamed to src/FileApi.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Unisharp\FileEntry;
3+
namespace Unisharp\FileApi;
44

55
use League\Flysystem\FileNotFoundException;
66
use Symfony\Component\HttpFoundation\File\UploadedFile;
77

8-
class FileEntry
8+
class FileApi
99
{
1010
protected $basepath;
1111

@@ -44,7 +44,7 @@ private function moveFile($upload_file, $cus_name)
4444
return $filename;
4545
}
4646

47-
public function fullpath($filename)
47+
public function getPath($filename)
4848
{
4949
if (mb_substr($this->basepath, -1, 1, 'utf8') != '/') {
5050
$this->basepath .= '/';
@@ -57,7 +57,7 @@ public function fullpath($filename)
5757
return $this->basepath . $filename;
5858
}
5959

60-
public function url($filename)
60+
public function getUrl($filename)
6161
{
6262
if (\Config::get('filesystems.default') == 's3') {
6363
return \Storage::getDriver()->getAdapter()->getClient()->getObjectUrl(
@@ -69,7 +69,7 @@ public function url($filename)
6969
}
7070
}
7171

72-
public function response($filename, $headers = [])
72+
public function getResponse($filename, $headers = [])
7373
{
7474
try {
7575
$path = $this->basepath . $filename;

0 commit comments

Comments
 (0)