| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Code Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 22 | public function getConfigTreeBuilder(): TreeBuilder |
||
| 23 | { |
||
| 24 | $treeBuilder = new TreeBuilder(); |
||
| 25 | $rootNode = $treeBuilder->root('injection'); |
||
| 26 | $rootNode |
||
| 27 | ->addDefaultsIfNotSet() |
||
|
|
|||
| 28 | ->children() |
||
| 29 | ->arrayNode('paths') |
||
| 30 | ->defaultValue(['src' => 'App\\']) |
||
| 31 | ->prototype('scalar') |
||
| 32 | ->end() |
||
| 33 | ->end() |
||
| 34 | ->arrayNode('environment_groups') |
||
| 35 | ->useAttributeAsKey('group') |
||
| 36 | ->defaultValue([]) |
||
| 37 | ->arrayPrototype() |
||
| 38 | ->children() |
||
| 39 | ->arrayNode('environments') |
||
| 40 | ->scalarPrototype() |
||
| 41 | ->end() |
||
| 42 | ->end() |
||
| 43 | ->end() |
||
| 44 | ->end() |
||
| 45 | ->end(); |
||
| 46 | return $treeBuilder; |
||
| 47 | } |
||
| 48 | } |