added config definition for cache enabler

This commit is contained in:
2024-09-13 04:43:29 +02:00
parent 3ff3ddfdc5
commit 0ac58211fb

View File

@@ -29,6 +29,12 @@ final class Configuration implements ConfigurationInterface
->end()
->arrayNode('cache')
->children()
->booleanNode('enabled')
->info('Enable/disable cache')
->defaultTrue()
->cannotBeEmpty()
->isRequired()
->end()
->scalarNode('ttl')
->info('TTL for cached API calls')
->example([1800, 'P30M'])