1 | <?php |
||
15 | class AliyunOssAdapter extends BaseAdapter implements CanOverwriteFiles |
||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $config; |
||
21 | |||
22 | 2 | public function __construct(OssClient $client, array $config) |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 1 | protected function getOptionsFromConfig(Config $config) |
|
42 | |||
43 | /** |
||
44 | * Used by \Illuminate\Filesystem\FilesystemAdapter::url |
||
45 | * |
||
46 | * @param string $path |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getUrl($path) |
||
68 | |||
69 | /** |
||
70 | * Used by \Illuminate\Filesystem\FilesystemAdapter::temporaryUrl |
||
71 | * Get a temporary URL for the file at the given path. |
||
72 | * |
||
73 | * @param string $path |
||
74 | * @param \DateTimeInterface $expiration |
||
75 | * @param array $options |
||
76 | * @return string |
||
77 | * |
||
78 | * @throws \RuntimeException |
||
79 | */ |
||
80 | public function getTemporaryUrl($path, $expiration, array $options = []) |
||
88 | } |
||
89 |