1 | <?php |
||
8 | class FortrabbitAdapter extends AwsS3Adapter |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $storageUrl; |
||
14 | |||
15 | /** |
||
16 | * Constructor. |
||
17 | * |
||
18 | * @param S3Client $client |
||
19 | * @param string $bucket |
||
20 | * @param string $prefix |
||
21 | * @param array $options |
||
22 | * @param string $storageUrl |
||
23 | */ |
||
24 | 12 | public function __construct(S3Client $client, $bucket, $prefix = '', array $options = [], $storageUrl = '') |
|
30 | |||
31 | /** |
||
32 | * Get the storage URL. |
||
33 | * |
||
34 | * @return string storage URL |
||
35 | */ |
||
36 | 6 | public function getStorageUrl() |
|
40 | |||
41 | /** |
||
42 | * Set the storage URL. |
||
43 | * |
||
44 | * @param string $url |
||
45 | * |
||
46 | * @return self |
||
47 | */ |
||
48 | 12 | public function setStorageUrl($url) |
|
60 | |||
61 | /** |
||
62 | * Get the public URL. |
||
63 | * |
||
64 | * @return string public URL |
||
65 | */ |
||
66 | 6 | public function getUrl($path) |
|
70 | } |
||
71 |