forked from LiveCarta/yii2-aws-s3
refactoring of commands. now they are semantic
This commit is contained in:
@@ -20,7 +20,7 @@ final class GetPresignedUrlCommandHandler extends Handler
|
||||
public function handle(GetPresignedUrlCommand $command): string
|
||||
{
|
||||
$awsCommand = $this->s3Client->getCommand('GetObject', $command->getArgs());
|
||||
$request = $this->s3Client->createPresignedRequest($awsCommand, $command->getExpires());
|
||||
$request = $this->s3Client->createPresignedRequest($awsCommand, $command->getExpiration());
|
||||
|
||||
return (string)$request->getUri();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user