File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33namespace Timongo \Creatures ;
44
55use League \Flysystem \File ;
6- use League \Flysystem \FileSystem ;
6+ use League \Flysystem \Filesystem ;
77use League \Flysystem \Adapter \Local ;
88
99class FileCreaturesRepository {
@@ -16,7 +16,7 @@ public function __construct($path = null)
1616 {
1717 $ this ->path = $ path ?: realpath (__DIR__ . '/../data ' );
1818
19- $ this ->filesystem = new FileSystem ( new Local ($ this ->path ) );
19+ $ this ->filesystem = new Filesystem ( new Local ($ this ->path ) );
2020 }
2121
2222 public function read ($ file )
@@ -60,7 +60,7 @@ public function checkImages()
6060 {
6161 $ imagesPath = realpath (__DIR__ . '/../img ' );
6262
63- $ imageFileSystem = new FileSystem ( new Local ($ imagesPath ) );
63+ $ imageFileSystem = new Filesystem ( new Local ($ imagesPath ) );
6464
6565 foreach ($ this ->fetchAll () as $ creature ) {
6666 if (! $ imageFileSystem ->has ($ creature ->image )) {
You can’t perform that action at this time.
0 commit comments