improved calendar (#784)

This commit is contained in:
Kevin Papst
2019-05-19 16:16:20 +02:00
committed by GitHub
parent 1903d6fb77
commit d2ad87d09c
66 changed files with 1030 additions and 1190 deletions

View File

@@ -202,7 +202,6 @@ class Configuration implements ConfigurationInterface
->children()
->arrayNode('documents')
->requiresAtLeastOneElement()
->isRequired()
->scalarPrototype()->end()
->defaultValue([
'var/invoices/',
@@ -244,6 +243,7 @@ class Configuration implements ConfigurationInterface
$node = $builder->getRootNode();
$node
->addDefaultsIfNotSet()
->children()
->booleanNode('week_numbers')->defaultTrue()->end()
->integerNode('day_limit')->defaultValue(4)->end()
@@ -259,6 +259,13 @@ class Configuration implements ConfigurationInterface
->scalarNode('end')->defaultValue('20:00')->end()
->end()
->end()
->arrayNode('visibleHours')
->addDefaultsIfNotSet()
->children()
->scalarNode('begin')->defaultValue('00:00')->end()
->scalarNode('end')->defaultValue('24:00')->end()
->end()
->end()
->arrayNode('google')
->addDefaultsIfNotSet()
->children()
@@ -275,6 +282,7 @@ class Configuration implements ConfigurationInterface
->end()
->end()
->end()
->booleanNode('weekends')->defaultTrue()->end()
->end()
;