Make sure definition is set in create

This commit is contained in:
Gavin Davies 2013-03-01 12:43:20 +00:00
parent 79cad5c65a
commit 21841d68ee

View File

@ -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'])