Define new configuration for local storage

This commit is contained in:
Julien Fastré 2024-12-15 22:38:06 +01:00
parent 67b5bc6dba
commit d7652658f2
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -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')