Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function getConfigTreeBuilder() |
||
14 | { |
||
15 | $treeBuilder = new TreeBuilder(); |
||
16 | $rootNode = $treeBuilder->root('nexy_slack'); |
||
17 | |||
18 | $rootNode |
||
19 | ->children() |
||
20 | ->scalarNode('endpoint')->isRequired()->cannotBeEmpty()->end() |
||
21 | ->scalarNode('channel')->defaultNull()->end() |
||
22 | ->scalarNode('username')->defaultNull()->end() |
||
23 | ->scalarNode('icon')->defaultNull()->end() |
||
24 | ->booleanNode('link_names')->defaultFalse()->end() |
||
25 | ->booleanNode('unfurl_links')->defaultFalse()->end() |
||
26 | ->booleanNode('unfurl_media')->defaultTrue()->end() |
||
27 | ->booleanNode('allow_markdown')->defaultTrue()->end() |
||
28 | ->arrayNode('markdown_in_attachments') |
||
29 | ->prototype('scalar')->end() |
||
30 | ->end() |
||
31 | ->end() |
||
32 | ; |
||
33 | |||
34 | return $treeBuilder; |
||
35 | } |
||
36 | } |
||
37 |