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

23 lines
509 B
PHP

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