File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 9
9
use Illuminate \Routing \Router ;
10
10
use Illuminate \Support \Arr ;
11
11
use League \Flysystem \Filesystem as Flysystem ;
12
+ use League \Flysystem \Local \LocalFilesystemAdapter ;
12
13
use Statamic \Contracts \Imaging \UrlBuilder ;
13
14
use Statamic \Facades \Collection ;
14
15
use Statamic \Facades \Entry ;
@@ -120,13 +121,8 @@ public function bindGlide()
120
121
121
122
$ directory = Arr::get ($ this ->config , 'glide.directory ' );
122
123
123
- // Determine which adapter to use for Flysystem 1.x or 3.x.
124
- $ localAdapter = class_exists ($ legacyAdapter = '\League\Flysystem\Adapter\Local ' )
125
- ? $ legacyAdapter
126
- : '\League\Flysystem\Local\LocalFilesystemAdapter ' ;
127
-
128
124
$ this ->app ['League\Glide\Server ' ]->setCache (
129
- new Flysystem (new $ localAdapter ($ this ->config ['destination ' ].'/ ' .$ directory ))
125
+ new Flysystem (new LocalFilesystemAdapter ($ this ->config ['destination ' ].'/ ' .$ directory ))
130
126
);
131
127
132
128
$ this ->app ->bind (UrlBuilder::class, function () use ($ directory ) {
You can’t perform that action at this time.
0 commit comments