Conditions | 1 |
Paths | 1 |
Total Lines | 36 |
Code Lines | 31 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function getConfigTreeBuilder() |
||
30 | { |
||
31 | $treeBuilder = new TreeBuilder(); |
||
32 | $rootNode = $treeBuilder->root(static::NAME); |
||
33 | |||
34 | $rootNode |
||
35 | ->children() |
||
36 | ->arrayNode(static::SITES) |
||
37 | ->arrayPrototype() |
||
38 | ->children() |
||
39 | ->scalarNode(static::SITES_SITE)->end() |
||
40 | ->scalarNode(static::SITES_URL)->end() |
||
41 | ->scalarNode(static::SITES_TOKEN)->end() |
||
42 | ->end() |
||
43 | ->end() |
||
44 | ->end() |
||
45 | ->arrayNode(static::ROUTES) |
||
46 | ->arrayPrototype() |
||
47 | ->children() |
||
48 | ->scalarNode(static::ROUTES_ROUTE)->end() |
||
49 | ->scalarNode(static::ROUTES_REQUEST_CLASS)->end() |
||
50 | ->end() |
||
51 | ->end() |
||
52 | ->end() |
||
53 | ->arrayNode(static::ENTITIES) |
||
54 | ->arrayPrototype() |
||
55 | ->children() |
||
56 | ->scalarNode(static::ENTITIES_TABLE_NAME)->end() |
||
57 | ->scalarNode(static::ENTITIES_ENTITY_CLASS)->end() |
||
58 | ->end() |
||
59 | ->end() |
||
60 | ->end() |
||
61 | ->end() |
||
62 | ; |
||
63 | |||
64 | return $treeBuilder; |
||
65 | } |
||
67 |