1 | <?php |
||
10 | class FileManager implements FileManagerContract |
||
11 | { |
||
12 | /** |
||
13 | * @var \GrahamCampbell\Flysystem\FlysystemManager |
||
14 | */ |
||
15 | protected $flysystem; |
||
16 | |||
17 | public function __construct(FlysystemManager $flysystemManager) |
||
21 | |||
22 | /** |
||
23 | * @param Image $image |
||
24 | * @param string $path |
||
25 | * @return bool |
||
26 | */ |
||
27 | public function save(Image $image, $path) |
||
31 | |||
32 | /** |
||
33 | * @param Collection $images |
||
34 | * @param AttacherImageContract $attacherImage |
||
35 | * @return bool |
||
36 | */ |
||
37 | public function saveMany(Collection $images, AttacherImageContract $attacherImage) |
||
46 | |||
47 | /** |
||
48 | * @param Image $image |
||
49 | * @param string $path |
||
50 | * @param string $oldPath |
||
51 | * @return bool |
||
52 | */ |
||
53 | public function update(Image $image, $path, $oldPath) |
||
57 | |||
58 | /** |
||
59 | * @param Collection $images |
||
60 | * @param AttacherImageContract $attacherImage |
||
61 | * @return bool |
||
62 | */ |
||
63 | public function updateMany(Collection $images, AttacherImageContract $attacherImage) |
||
69 | |||
70 | /** |
||
71 | * @param string $path |
||
72 | * @return bool |
||
73 | */ |
||
74 | public function delete($path) |
||
97 | |||
98 | /** |
||
99 | * @param string $path |
||
100 | * @return bool |
||
101 | */ |
||
102 | public function pathExists($path) |
||
106 | } |
||
107 |