1 | <?php |
||
8 | class AwsS3PublicUrlResolver implements ResolverInterface |
||
9 | { |
||
10 | /** @var S3Client */ |
||
11 | private $service; |
||
12 | |||
13 | /** @var string */ |
||
14 | private $bucket; |
||
15 | |||
16 | /** @var string */ |
||
17 | private $baseDir; |
||
18 | |||
19 | /** |
||
20 | * @param S3Client $service |
||
21 | * @param string $bucket Bucket used by the adapter |
||
22 | * @param string $baseDir Base directory used by the adapter, if any |
||
23 | */ |
||
24 | public function __construct(S3Client $service, $bucket, $baseDir = '') |
||
30 | |||
31 | /** |
||
32 | * Resolves given object $path into public URL. |
||
33 | * |
||
34 | * @param string $path |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public function resolve($path) |
||
45 | } |
||
46 |