| 1 | <?php |
||
| 20 | class Aws3Resolver implements ResolverInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var \Aws\S3\S3Client |
||
| 24 | */ |
||
| 25 | protected $client; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $bucket; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | protected $directory; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Constructor |
||
| 39 | */ |
||
| 40 | public function __construct(S3Client $client, $bucket, $directory = null) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function getUrl($filename) |
||
| 59 | } |
||
| 60 |