From d1eb6f2550e88e0b93b10a6befff72c3f1d94e64 Mon Sep 17 00:00:00 2001 From: Ben Meynell Date: Mon, 5 May 2014 09:10:50 -0400 Subject: [PATCH] added detect_content_type option for AwsS3 adapter --- DependencyInjection/Factory/AwsS3AdapterFactory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DependencyInjection/Factory/AwsS3AdapterFactory.php b/DependencyInjection/Factory/AwsS3AdapterFactory.php index bf50d0e..11a2037 100644 --- a/DependencyInjection/Factory/AwsS3AdapterFactory.php +++ b/DependencyInjection/Factory/AwsS3AdapterFactory.php @@ -20,6 +20,7 @@ class AwsS3AdapterFactory implements AdapterFactoryInterface ->addArgument(new Reference($config['service_id'])) ->addArgument($config['bucket_name']) ->addArgument($config['options']) + ->addArgument($config['detect_content_type']) ; } @@ -40,6 +41,7 @@ class AwsS3AdapterFactory implements AdapterFactoryInterface ->children() ->scalarNode('service_id')->isRequired()->cannotBeEmpty()->end() ->scalarNode('bucket_name')->isRequired()->cannotBeEmpty()->end() + ->booleanNode('detect_content_type')->defaultFalse()->end() ->arrayNode('options') ->addDefaultsIfNotSet() ->children()