Skip to content

Commit

Permalink
Set mimeTypeDetector nullable by default (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyhalin authored Jul 13, 2022
1 parent 91b39ca commit 36449c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
;
}

Expand All @@ -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()
;
}
Expand Down
1 change: 1 addition & 0 deletions src/Resources/config/adapters.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<argument/><!-- Prefix -->
<argument/><!-- VisibilityHandler -->
<argument/><!-- defaultVisibility -->
<argument/><!-- mimeTypeDetector -->
</service>
<service id="oneup_flysystem.adapter.gitlab" class="RoyVoetman\FlysystemGitlab\GitlabAdapter" abstract="true" public="false">
<argument/><!-- Client -->
Expand Down

0 comments on commit 36449c1

Please sign in to comment.