bootstrap fake sms from cli

This commit is contained in:
2022-06-13 14:01:07 +02:00
parent 9e4fd6183e
commit 616be5cc8a
15 changed files with 417 additions and 2 deletions

View File

@@ -39,6 +39,12 @@ class ChillCalendarExtension extends Extension implements PrependExtensionInterf
$loader->load('services/remote_calendar.yaml');
$container->setParameter('chill_calendar', $config);
if ($config['short_messages']['enabled']) {
$container->setParameter('chill_calendar.short_messages', $config['short_messages']);
} else {
$container->setParameter('chill_calendar.short_messages', null);
}
}
public function prepend(ContainerBuilder $container)

View File

@@ -26,7 +26,12 @@ class Configuration implements ConfigurationInterface
$treeBuilder = new TreeBuilder('chill_calendar');
$rootNode = $treeBuilder->getRootNode('chill_calendar');
$rootNode->children()
$rootNode
->children()
->arrayNode('short_messages')
->canBeDisabled()
->children()->end()
->end() // end for short_messages
->arrayNode('remote_calendars_sync')->canBeEnabled()
->children()
->arrayNode('microsoft_graph')->canBeEnabled()