1 | <?php |
||
12 | class AliyunOssAdapter extends BaseAdapter implements CanOverwriteFiles |
||
13 | { |
||
14 | /** |
||
15 | * @var AliyunOssConfig |
||
16 | */ |
||
17 | protected $ossConfig; |
||
18 | |||
19 | /** |
||
20 | * @param OssClient $ossClient |
||
21 | * @param AliyunOssConfig $ossConfig |
||
22 | */ |
||
23 | 1 | public function __construct(OssClient $ossClient, AliyunOssConfig $ossConfig) |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 6 | protected function getOptionsFromConfig(Config $config) |
|
43 | |||
44 | /** |
||
45 | * Used by \Illuminate\Filesystem\FilesystemAdapter::url |
||
46 | * Get the URL for the file at the given path. |
||
47 | * |
||
48 | * @param string $path |
||
49 | * @return string |
||
50 | */ |
||
51 | 3 | public function getUrl($path) |
|
56 | |||
57 | /** |
||
58 | * Used by \Illuminate\Filesystem\FilesystemAdapter::temporaryUrl |
||
59 | * Get a temporary URL for the file at the given path. |
||
60 | * |
||
61 | * @param string $path |
||
62 | * @param \DateTimeInterface|null $expiration |
||
63 | * @param array $options |
||
64 | * @return string |
||
65 | * |
||
66 | * @throws \RuntimeException |
||
67 | */ |
||
68 | 2 | public function getTemporaryUrl($path, $expiration = null, array $options = []) |
|
81 | } |
||
82 |