1 | <?php |
||
13 | class AwsS3PublicUrlResolver implements ResolverInterface |
||
14 | { |
||
15 | /** @var S3Client */ |
||
16 | private $service; |
||
17 | |||
18 | /** @var string */ |
||
19 | private $bucket; |
||
20 | |||
21 | /** @var string */ |
||
22 | private $baseDir; |
||
23 | |||
24 | /** |
||
25 | * @param S3Client $service |
||
26 | * @param string $bucket Bucket used by the adapter |
||
27 | * @param string $baseDir Base directory used by the adapter, if any |
||
28 | */ |
||
29 | public function __construct(S3Client $service, $bucket, $baseDir = '') |
||
35 | |||
36 | /** |
||
37 | * Resolves given object $path into public URL. |
||
38 | * |
||
39 | * @param string $path |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function resolve($path) |
||
50 | } |
||
51 |