1 | <?php |
||
11 | class OVHSwiftAdapter extends SwiftAdapter |
||
12 | { |
||
13 | /** |
||
14 | * URL base path variables for OVH service |
||
15 | * the HTTPS url is typically of the format |
||
16 | * https://storage.[REGION].cloud.ovh.net/v1/AUTH_[PROJECT_ID]/[CONTAINER_NAME]. |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $urlVars; |
||
20 | |||
21 | /** Variables from the Filesystem class will be temporarily stored here */ |
||
22 | protected $specialParams; |
||
23 | |||
24 | /** |
||
25 | * Constructor. |
||
26 | * |
||
27 | * @param Container $container |
||
28 | * @param array $urlVars |
||
29 | * @param string $prefix |
||
30 | */ |
||
31 | public function __construct(Container $container, $urlVars = [], $prefix = null) |
||
37 | |||
38 | /** |
||
39 | * Custom function to comply with the Storage::url() function in laravel |
||
40 | * without checking the existence of a file (faster). |
||
41 | * |
||
42 | * @param string $path |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getUrl($path) |
||
51 | |||
52 | /** |
||
53 | * Custom function to get a url with confirmed file existence. |
||
54 | * |
||
55 | * @param string $path |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getUrlConfirm($path) |
||
71 | |||
72 | /** |
||
73 | * Generate a temporary URL for private containers. |
||
74 | * |
||
75 | * @param string $path |
||
76 | * @param Carbon $expiration |
||
77 | * @param array $options |
||
78 | * @return string |
||
79 | */ |
||
80 | public function getTemporaryUrl($path, $expiration, $options = []) |
||
112 | |||
113 | /** |
||
114 | * Gets the endpoint url of the bucket. |
||
115 | * |
||
116 | * @return string |
||
117 | */ |
||
118 | protected function getEndpoint() |
||
133 | |||
134 | /** |
||
135 | * Check if the url support variables have |
||
136 | * been correctly defined. |
||
137 | * |
||
138 | * @return void|BadMethodCallException |
||
139 | */ |
||
140 | protected function checkParams() |
||
148 | |||
149 | /** |
||
150 | * Include support for object deletion. |
||
151 | * |
||
152 | * @param string $path |
||
153 | * @see Nimbusoft\Flysystem\OpenStack |
||
154 | * |
||
155 | * @return array |
||
156 | */ |
||
157 | protected function getWriteData($path, $config) |
||
169 | |||
170 | /** |
||
171 | * Expose the container to allow for modification to metadata |
||
172 | * |
||
173 | * @return \OpenStack\ObjectStore\v1\Models\Container; |
||
|
|||
174 | */ |
||
175 | public function getContainer() |
||
179 | } |
||
180 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.