From d7652658f210b0c274c9562c769f13dfd08a49f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sun, 15 Dec 2024 22:38:06 +0100 Subject: [PATCH] Define new configuration for local storage --- .../DependencyInjection/Configuration.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillDocStoreBundle/DependencyInjection/Configuration.php b/src/Bundle/ChillDocStoreBundle/DependencyInjection/Configuration.php index 7c6a08f80..4d17c7ebd 100644 --- a/src/Bundle/ChillDocStoreBundle/DependencyInjection/Configuration.php +++ b/src/Bundle/ChillDocStoreBundle/DependencyInjection/Configuration.php @@ -30,10 +30,18 @@ class Configuration implements ConfigurationInterface /* @phpstan-ignore-next-line As there are inconsistencies in return types, but the code works... */ $rootNode->children() + ->arrayNode('local_storage') + ->info('where the stored object should be stored') + ->children() + ->scalarNode('storage_path') + ->info('the folder where the stored object should be stored') + ->isRequired()->cannotBeEmpty() + ->end() // end of storage_path + ->end() // end of children + ->end() // end of local_storage // openstack node ->arrayNode('openstack') ->info('parameters to authenticate and generate temp url against the openstack object storage service') - ->addDefaultsIfNotSet() ->children() // openstack.temp_url ->arrayNode('temp_url')