Skip to content

Commit f21f620

Browse files
authored
Merge pull request #1426 from garak/fix-bc
make namer optional again
2 parents 5eb80dd + af33125 commit f21f620

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
"doctrine/mongodb-odm": "^2.4",
3737
"doctrine/orm": "^2.13",
3838
"knplabs/knp-gaufrette-bundle": "dev-master",
39-
"league/flysystem-bundle": "^2.3 || ^3.0",
39+
"league/flysystem-bundle": "^2.4 || ^3.0",
4040
"league/flysystem-memory": "^2.0 || ^3.0",
41-
"matthiasnoback/symfony-dependency-injection-test": "^4.3 || ^5.0",
41+
"matthiasnoback/symfony-dependency-injection-test": "^5.1",
4242
"mikey179/vfsstream": "^1.6.11",
4343
"phpunit/phpunit": "^9.6",
44-
"symfony/asset": "^5.4 || ^6.0",
44+
"symfony/asset": "^5.4 || ^6.0 || ^7.0",
4545
"symfony/browser-kit": "^5.4 || ^6.0 || ^7.0",
4646
"symfony/css-selector": "^5.4 || ^6.0 || ^7.0",
4747
"symfony/doctrine-bridge": "^5.4 || ^6.0 || ^7.0",

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private function addMappingsSection(ArrayNodeDefinition $node): void
104104
->scalarNode('uri_prefix')->defaultValue('/uploads')->end()
105105
->scalarNode('upload_destination')->isRequired()->end()
106106
->arrayNode('namer')
107-
->isRequired()
107+
->addDefaultsIfNotSet()
108108
->beforeNormalization()
109109
->ifString()
110110
->then(static fn ($v) => ['service' => $v, 'options' => []])

0 commit comments

Comments
 (0)