Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function getConfigTreeBuilder(): TreeBuilder |
||
16 | { |
||
17 | $treeBuilder = new TreeBuilder('sonata_annotation'); |
||
18 | |||
19 | if (\method_exists($treeBuilder, 'getRootNode')) { |
||
20 | $rootNode = $treeBuilder->getRootNode(); |
||
21 | } else { |
||
22 | // BC layer for symfony/config 4.1 and older |
||
23 | $rootNode = $treeBuilder->root('sonata_annotation'); |
||
|
|||
24 | } |
||
25 | |||
26 | $rootNode |
||
27 | ->children() |
||
28 | ->scalarNode('directory')->defaultNull()->end() |
||
29 | ->end(); |
||
30 | |||
31 | return $treeBuilder; |
||
32 | } |
||
34 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.