baikal-storage-plugin/lib/Configs/TaskwarriorConfig.php

23 lines
509 B
PHP
Raw Normal View History

2020-05-03 16:41:59 -05:00
<?php
namespace Aerex\BaikalStorage\Configs;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
class TaskwarriorConfig {
public function get() {
$treeBuilder = new TreeBuilder();
$node = $treeBuilder->root('taskwarrior');
2020-05-03 16:41:59 -05:00
$node->children()
->scalarNode('taskdata')
->defaultValue('~/.task')
->end()
->scalarNode('taskrc')
->defaultValue('~/.taskrc')
->end()
->end();
2020-05-03 16:41:59 -05:00
return $node;
}
}