From d9222b320bc5e51abd1b7f66060b4f72a4231ee5 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 14 Mar 2024 10:26:00 +0100 Subject: [PATCH] Fix spelling of "defaultVisiblity" => "defaultVisibility" (#299) Co-authored-by: Christopher Georg --- .../Factory/Adapter/GoogleCloudStorageFactory.php | 4 ++-- src/DependencyInjection/Factory/Adapter/InMemoryFactory.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DependencyInjection/Factory/Adapter/GoogleCloudStorageFactory.php b/src/DependencyInjection/Factory/Adapter/GoogleCloudStorageFactory.php index cdd76a6..bc8b127 100644 --- a/src/DependencyInjection/Factory/Adapter/GoogleCloudStorageFactory.php +++ b/src/DependencyInjection/Factory/Adapter/GoogleCloudStorageFactory.php @@ -32,7 +32,7 @@ public function create(ContainerBuilder $container, string $id, array $config): ->replaceArgument(0, $bucket) ->replaceArgument(1, $config['prefix']) ->replaceArgument(2, $visibilityHandler) - ->replaceArgument(3, $config['defaultVisiblity']) + ->replaceArgument(3, $config['defaultVisibility']) ->replaceArgument(4, $config['mimeTypeDetector']) ; } @@ -45,7 +45,7 @@ public function addConfiguration(NodeDefinition $node): void ->scalarNode('bucket')->isRequired()->end() ->scalarNode('prefix')->treatNullLike('')->defaultValue('')->end() ->scalarNode('visibilityHandler')->defaultNull()->end() - ->scalarNode('defaultVisiblity')->defaultValue(Visibility::PRIVATE)->end() + ->scalarNode('defaultVisibility')->defaultValue(Visibility::PRIVATE)->end() ->scalarNode('mimeTypeDetector')->defaultNull()->end() ->end() ; diff --git a/src/DependencyInjection/Factory/Adapter/InMemoryFactory.php b/src/DependencyInjection/Factory/Adapter/InMemoryFactory.php index 4a56efb..506f22d 100644 --- a/src/DependencyInjection/Factory/Adapter/InMemoryFactory.php +++ b/src/DependencyInjection/Factory/Adapter/InMemoryFactory.php @@ -21,7 +21,7 @@ public function create(ContainerBuilder $container, string $id, array $config): { $container ->setDefinition($id, new ChildDefinition('oneup_flysystem.adapter.memory')) - ->replaceArgument(0, $config['defaultVisiblity']) + ->replaceArgument(0, $config['defaultVisibility']) ; } @@ -29,7 +29,7 @@ public function addConfiguration(NodeDefinition $node): void { $node ->children() - ->scalarNode('defaultVisiblity')->defaultValue(Visibility::PUBLIC)->end() + ->scalarNode('defaultVisibility')->defaultValue(Visibility::PUBLIC)->end() ->end() ; }