diff --git a/composer.json b/composer.json index 1f73f4c1..130ac4d3 100644 --- a/composer.json +++ b/composer.json @@ -36,12 +36,12 @@ "doctrine/mongodb-odm": "^2.4", "doctrine/orm": "^2.13", "knplabs/knp-gaufrette-bundle": "dev-master", - "league/flysystem-bundle": "^2.3 || ^3.0", + "league/flysystem-bundle": "^2.4 || ^3.0", "league/flysystem-memory": "^2.0 || ^3.0", - "matthiasnoback/symfony-dependency-injection-test": "^4.3 || ^5.0", + "matthiasnoback/symfony-dependency-injection-test": "^5.1", "mikey179/vfsstream": "^1.6.11", "phpunit/phpunit": "^9.6", - "symfony/asset": "^5.4 || ^6.0", + "symfony/asset": "^5.4 || ^6.0 || ^7.0", "symfony/browser-kit": "^5.4 || ^6.0 || ^7.0", "symfony/css-selector": "^5.4 || ^6.0 || ^7.0", "symfony/doctrine-bridge": "^5.4 || ^6.0 || ^7.0", diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 34b45f84..3cfd35ce 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -104,7 +104,7 @@ private function addMappingsSection(ArrayNodeDefinition $node): void ->scalarNode('uri_prefix')->defaultValue('/uploads')->end() ->scalarNode('upload_destination')->isRequired()->end() ->arrayNode('namer') - ->isRequired() + ->addDefaultsIfNotSet() ->beforeNormalization() ->ifString() ->then(static fn ($v) => ['service' => $v, 'options' => []])