8000 [9.x] Fixing the Error : Class "League\Flysystem\Adapter\Local" not found by arcanedev-maroc · Pull Request #36407 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[9.x] Fixing the Error : Class "League\Flysystem\Adapter\Local" not found #36407

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

Merged
merged 2 commits into from
Mar 1, 2021
Merged
Changes from 1 commit
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
< 8000 /option>
Diff view
Next Next commit
[9.x] Fixing the Error : Class "League\Flysystem\Adapter\Local" not f…
…ound

This is related to the new Flysystem v2 (Check the PR #33612)
  • Loading branch information
arcanedev-maroc authored Feb 26, 2021
commit af76c93a7a7d0e6f8e9e9ca13005f54fbc6f2af7
6 changes: 3 additions & 3 deletions src/Illuminate/Foundation/Console/VendorPublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Arr;
use Illuminate\Support\ServiceProvider;
use League\Flysystem\Adapter\Local as LocalAdapter;
use League\Flysystem\Local\LocalFilesystemAdapter as LocalAdapter;
use League\Flysystem\Filesystem as Flysystem;
use League\Flysystem\MountManager;

Expand Down Expand Up @@ -254,8 +254,8 @@ protected function publishDirectory($from, $to)
protected function moveManagedFiles($manager)
{
foreach ($manager->listContents('from://', true) as $file) {
if ($file['type'] === 'file' && (! $manager->has('to://'.$file['path']) || $this->option('force'))) {
$manager->put('to://'.$file['path'], $manager->read('from://'.$file['path']));
if ($file['type'] === 'file' && (! $manager->fileExists('to://'.$file['path']) || $this->option('force'))) {
$manager->write('to://'.$file['path'], $manager->read('from://'.$file['path']));
}
}
}
Expand Down
0