From 21841d68eed76066db65a40b5dd3fddd0724d7f2 Mon Sep 17 00:00:00 2001 From: Gavin Davies Date: Fri, 1 Mar 2013 12:43:20 +0000 Subject: [PATCH] Make sure definition is set in create --- DependencyInjection/Factory/AclAwareAmazonS3AdapterFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/Factory/AclAwareAmazonS3AdapterFactory.php b/DependencyInjection/Factory/AclAwareAmazonS3AdapterFactory.php index 3bb150a..4f085b2 100644 --- a/DependencyInjection/Factory/AclAwareAmazonS3AdapterFactory.php +++ b/DependencyInjection/Factory/AclAwareAmazonS3AdapterFactory.php @@ -14,7 +14,7 @@ class AclAwareAmazonS3AdapterFactory implements AdapterFactoryInterface */ public function create(ContainerBuilder $container, $id, array $config) { - $container + $definition = $container ->setDefinition($id.'.delegate', new DefinitionDecorator('knp_gaufrette.adapter.amazon_s3')) ->addArgument(new Reference($config['amazon_s3_id'])) ->addArgument($config['bucket_name'])