From 36449c157a82cf8634846914d12633c4d1422aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Halin?= Date: Wed, 13 Jul 2022 09:10:37 +0200 Subject: [PATCH] Set mimeTypeDetector nullable by default (#267) --- .../Factory/Adapter/GoogleCloudStorageFactory.php | 2 ++ src/Resources/config/adapters.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/src/DependencyInjection/Factory/Adapter/GoogleCloudStorageFactory.php b/src/DependencyInjection/Factory/Adapter/GoogleCloudStorageFactory.php index 73db0c1..d2ae953 100644 --- a/src/DependencyInjection/Factory/Adapter/GoogleCloudStorageFactory.php +++ b/src/DependencyInjection/Factory/Adapter/GoogleCloudStorageFactory.php @@ -31,6 +31,7 @@ public function create(ContainerBuilder $container, string $id, array $config): ->replaceArgument(1, $config['prefix']) ->replaceArgument(2, $config['visibilityHandler']) ->replaceArgument(3, $config['defaultVisiblity']) + ->replaceArgument(4, $config['mimeTypeDetector']) ; } @@ -43,6 +44,7 @@ public function addConfiguration(NodeDefinition $node): void ->scalarNode('prefix')->treatNullLike('')->defaultValue('')->end() ->scalarNode('visibilityHandler')->defaultNull()->end() ->scalarNode('defaultVisiblity')->defaultValue(Visibility::PRIVATE)->end() + ->scalarNode('mimeTypeDetector')->defaultNull()->end() ->end() ; } diff --git a/src/Resources/config/adapters.xml b/src/Resources/config/adapters.xml index 9c57ad7..8b6d473 100644 --- a/src/Resources/config/adapters.xml +++ b/src/Resources/config/adapters.xml @@ -47,6 +47,7 @@ +