| 1 | <?php namespace Nord\Lumen\FileManager\Adapters; |
||
| 6 | class S3Adapter extends DiskAdapter |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var S3Client |
||
| 11 | */ |
||
| 12 | private $client; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $bucket; |
||
| 18 | |||
| 19 | |||
| 20 | /** |
||
| 21 | * S3Adapter constructor. |
||
| 22 | * |
||
| 23 | * @param array $config |
||
| 24 | */ |
||
| 25 | public function __construct(array $config) |
||
| 32 | |||
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritdoc |
||
| 36 | */ |
||
| 37 | public function getName() |
||
| 41 | |||
| 42 | |||
| 43 | /** |
||
| 44 | * @inheritdoc |
||
| 45 | */ |
||
| 46 | public function getFilePath(File $file, array $options) |
||
| 50 | |||
| 51 | |||
| 52 | /** |
||
| 53 | * @inheritdoc |
||
| 54 | */ |
||
| 55 | public function getFileUrl(File $file, array $options) |
||
| 59 | |||
| 60 | |||
| 61 | /** |
||
| 62 | * @param array $config |
||
| 63 | * |
||
| 64 | * @return S3Client |
||
| 65 | */ |
||
| 66 | private function createClient(array $config) |
||
| 79 | } |
||
| 80 |