Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Code Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function getConfigTreeBuilder() |
||
19 | { |
||
20 | $treeBuilder = new TreeBuilder(); |
||
21 | $rootNode = $treeBuilder->root('wowapps_slack'); |
||
22 | $rootNode |
||
23 | ->children() |
||
24 | ->scalarNode('api_url')->defaultValue('')->end() |
||
25 | ->scalarNode('default_icon') |
||
26 | ->defaultValue('http://cdn.wow-apps.pro/slackbot/slack-bot-icon-48.png') |
||
27 | ->end() |
||
28 | ->scalarNode('default_channel')->defaultValue('general')->end() |
||
29 | ->arrayNode('quote_color') |
||
30 | ->children() |
||
31 | ->scalarNode('default')->defaultValue('#607D8B')->end() |
||
32 | ->scalarNode('info')->defaultValue('#2196F3')->end() |
||
33 | ->scalarNode('warning')->defaultValue('#FF5722')->end() |
||
34 | ->scalarNode('success')->defaultValue('#8BC34A')->end() |
||
35 | ->scalarNode('danger')->defaultValue('#F44336')->end() |
||
36 | ->end() |
||
37 | ->end() |
||
38 | ->end() |
||
39 | ; |
||
40 | return $treeBuilder; |
||
41 | } |
||
42 | } |
||
43 |