Skip to content

Commit

Permalink
Fix spelling of "defaultVisiblity" => "defaultVisibility" (#299)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Georg <[email protected]>
  • Loading branch information
Chris53897 and Chris8934 authored Mar 14, 2024
1 parent dd72784 commit d9222b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
;
}
Expand All @@ -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()
;
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Factory/Adapter/InMemoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ 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'])
;
}

public function addConfiguration(NodeDefinition $node): void
{
$node
->children()
->scalarNode('defaultVisiblity')->defaultValue(Visibility::PUBLIC)->end()
->scalarNode('defaultVisibility')->defaultValue(Visibility::PUBLIC)->end()
->end()
;
}
Expand Down

0 comments on commit d9222b3

Please sign in to comment.