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