我正在尝试使用Gaufrette和Aws SDK2,我在缓存上遇到以下错误:配置后清除:
[Aws\Common\Exception\InvalidArgumentException]
The provided signature value is not an instance of S3SignatureInterface
这是我的设置。
composer.json
"aws/aws-sdk-php": "2.6.*@dev"
config.yml
services:
src.aws_s3.client:
class: Aws\S3\S3Client
factory_class: Aws\S3\S3Client
factory_method: 'factory'
arguments:
key: %amazon_aws_key%
secret: %amazon_aws_secret_key%
region: US Standard
...
knp_gaufrette:
adapters:
media_adapter:
aws_s3:
service_id: 'src.aws_s3.client'
bucket_name: my.bucket
options:
directory: 'media'
GitHub:https://github.com/KnpLabs/KnpGaufretteBundle/issues/90
答案 0 :(得分:0)
问题是服务声明的论据中的一个错误(我应该看到)。它需要是这样的集合:
config.yml
services:
src.aws_s3.client:
class: Aws\S3\S3Client
factory_class: Aws\S3\S3Client
factory_method: 'factory'
arguments:
- key: %amazon_aws_key%
secret: %amazon_aws_secret_key%