Merge pull request #41 from gavD/master

Bugfix: Acl Aware S3 factory could not set options
This commit is contained in:
Leszek Prabucki 2013-03-01 05:08:05 -08:00
commit 013f50495b

View File

@ -14,7 +14,7 @@ class AclAwareAmazonS3AdapterFactory implements AdapterFactoryInterface
*/ */
public function create(ContainerBuilder $container, $id, array $config) public function create(ContainerBuilder $container, $id, array $config)
{ {
$container $definition = $container
->setDefinition($id.'.delegate', new DefinitionDecorator('knp_gaufrette.adapter.amazon_s3')) ->setDefinition($id.'.delegate', new DefinitionDecorator('knp_gaufrette.adapter.amazon_s3'))
->addArgument(new Reference($config['amazon_s3_id'])) ->addArgument(new Reference($config['amazon_s3_id']))
->addArgument($config['bucket_name']) ->addArgument($config['bucket_name'])