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() {
|
2020-05-12 23:56:22 -05:00
|
|
|
$treeBuilder = new TreeBuilder();
|
|
|
|
$node = $treeBuilder->root('taskwarrior');
|
2020-05-03 16:41:59 -05:00
|
|
|
$node->children()
|
2020-05-12 23:56:22 -05:00
|
|
|
->scalarNode('taskdata')
|
|
|
|
->defaultValue('~/.task')
|
|
|
|
->end()
|
|
|
|
->scalarNode('taskrc')
|
|
|
|
->defaultValue('~/.taskrc')
|
|
|
|
->end()
|
|
|
|
->end();
|
|
|
|
|
2020-05-03 16:41:59 -05:00
|
|
|
return $node;
|
|
|
|
}
|
|
|
|
}
|