| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function getConfigTreeBuilder() |
||
| 15 | { |
||
| 16 | $treeBuilder = new TreeBuilder(); |
||
| 17 | |||
| 18 | $rootNode = $treeBuilder->root('code_cloud_shopify'); |
||
| 19 | |||
| 20 | $rootNode->children() |
||
| 21 | ->scalarNode('store_manager_id')->isRequired()->cannotBeEmpty()->end() |
||
| 22 | ->arrayNode('oauth')->isRequired() |
||
| 23 | ->children() |
||
| 24 | ->scalarNode('api_key')->isRequired()->cannotBeEmpty()->end() |
||
| 25 | ->scalarNode('shared_secret')->isRequired()->cannotBeEmpty()->end() |
||
| 26 | ->scalarNode('scope')->defaultValue('read_products')->end() |
||
| 27 | ->scalarNode('redirect_route')->isRequired()->cannotBeEmpty()->end() |
||
| 28 | ->end() |
||
| 29 | ->end() |
||
| 30 | ->arrayNode('webhooks') |
||
| 31 | ->prototype('scalar')->end() |
||
| 32 | ->defaultValue([]) |
||
| 33 | ->end() |
||
| 34 | ->scalarNode('api_version') |
||
| 35 | ->end() |
||
| 36 | ->scalarNode('dev_impersonate_store') |
||
| 37 | ->end() |
||
| 38 | ->end(); |
||
| 39 | |||
| 40 | return $treeBuilder; |
||
| 41 | } |
||
| 43 |