File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- namespace Unisharp \FileEntry ;
3+ namespace Unisharp \FileApi ;
44
55use League \Flysystem \FileNotFoundException ;
66use 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 ;
You can’t perform that action at this time.
0 commit comments