Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Class "FileNotFoundException' not found Bug #44

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "jacobcyl/ali-oss-storage",
"name": "jason-xt/aliyun-oss-storage-laravel",
"description": "aliyun oss filesystem storage for laravel 5+",
"keywords": ["aliyun", "oss", "laravel", "filesystems", "storage"],
"homepage": "http://jacobcyl.github.io/Aliyun-oss-storage/",
Expand All @@ -8,6 +8,10 @@
{
"name": "jacobcyl",
"email": "[email protected]"
},
{
"name": "jason-xu",
"email": "[email protected]"
}
],
"require": {
Expand Down
5 changes: 2 additions & 3 deletions src/AliOssAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@

namespace Jacobcyl\AliOSS;

use Dingo\Api\Contract\Transformer\Adapter;
use League\Flysystem\Adapter\AbstractAdapter;
use League\Flysystem\AdapterInterface;
use League\Flysystem\Config;
use League\Flysystem\Util;
use OSS\Core\OssException;
use OSS\OssClient;
use Log;
use Symfony\Component\Filesystem\Exception\FileNotFoundException;
use League\Flysystem\FileNotFoundException;

class AliOssAdapter extends AbstractAdapter
{
Expand Down Expand Up @@ -567,7 +566,7 @@ public function getVisibility($path)
*/
public function getUrl( $path )
{
if (!$this->has($path)) throw new FileNotFoundException($filePath.' not found');
//if (!$this->has($path)) throw new FileNotFoundException($filePath.' not found');
return ( $this->ssl ? 'https://' : 'http://' ) . ( $this->isCname ? ( $this->cdnDomain == '' ? $this->endPoint : $this->cdnDomain ) : $this->bucket . '.' . $this->endPoint ) . '/' . ltrim($path, '/');
}

Expand Down