| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function getConfigTreeBuilder() |
||
| 19 | { |
||
| 20 | $treeBuilder = new TreeBuilder(); |
||
| 21 | $rootNode = $treeBuilder->root('ozean12_google_pub_sub'); |
||
| 22 | |||
| 23 | $rootNode |
||
| 24 | ->children() |
||
| 25 | ->scalarNode('project_id')->cannotBeEmpty()->end() |
||
| 26 | ->scalarNode('key_file_path')->cannotBeEmpty()->end() |
||
| 27 | ->scalarNode('logger_channel')->defaultNull()->end() |
||
| 28 | ->scalarNode('topic_suffix')->defaultNull()->end() |
||
| 29 | ->arrayNode('topics') |
||
| 30 | ->prototype('scalar')->end() |
||
| 31 | ->end() |
||
| 32 | ->arrayNode('push_subscriptions') |
||
| 33 | ->prototype('scalar')->end() |
||
| 34 | ->end() |
||
| 35 | ->end() |
||
| 36 | ; |
||
| 37 | |||
| 38 | return $treeBuilder; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |