Make amazons3 config to be BC. Added UPGRADE file
This commit is contained in:
parent
503e2899c0
commit
6f5bb2a78a
|
@ -25,6 +25,8 @@ class AmazonS3AdapterFactory implements AdapterFactoryInterface
|
||||||
|
|
||||||
if (isset($config['options'])) {
|
if (isset($config['options'])) {
|
||||||
$definition->addArgument($config['options']);
|
$definition->addArgument($config['options']);
|
||||||
|
} elseif (isset($config['create'])) {
|
||||||
|
$definition->addArgument(array('create' => $config['create']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,6 +51,7 @@ class AmazonS3AdapterFactory implements AdapterFactoryInterface
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('amazon_s3_id')->isRequired()->cannotBeEmpty()->end()
|
->scalarNode('amazon_s3_id')->isRequired()->cannotBeEmpty()->end()
|
||||||
->scalarNode('bucket_name')->isRequired()->cannotBeEmpty()->end()
|
->scalarNode('bucket_name')->isRequired()->cannotBeEmpty()->end()
|
||||||
|
->booleanNode('create')->end()
|
||||||
->arrayNode('options')
|
->arrayNode('options')
|
||||||
->children()
|
->children()
|
||||||
->booleanNode('create')
|
->booleanNode('create')
|
||||||
|
|
31
UPGRADE
Normal file
31
UPGRADE
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
UPGRADE FROM 0.1 to 0.2
|
||||||
|
=======================
|
||||||
|
|
||||||
|
### AmazonS3
|
||||||
|
|
||||||
|
* In 0.2 we pass additional options for AmazonS3 Gaufrette provider AmazonS3 config was changed (old way is DEPRECIATED)
|
||||||
|
|
||||||
|
before:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
knp_gaufrette:
|
||||||
|
adapters:
|
||||||
|
adaptername:
|
||||||
|
amazon_s3:
|
||||||
|
amazon_s3_id: amazon_s3.service.id
|
||||||
|
bucket_name: mybucketname
|
||||||
|
create: true
|
||||||
|
```
|
||||||
|
|
||||||
|
after:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
knp_gaufrette:
|
||||||
|
adapters:
|
||||||
|
adaptername:
|
||||||
|
amazon_s3:
|
||||||
|
amazon_s3_id: amazon_s3.service.id
|
||||||
|
bucket_name: mybucketname
|
||||||
|
options:
|
||||||
|
create: true
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user