private function getRootNodeFromTreeBuilder(TreeBuilder $treeBuilder, string $nodeName): NodeDefinition
    {
        return (method_exists($treeBuilder, 'getRootNode')
            ? $treeBuilder->getRootNode()
            : $treeBuilder->root($nodeName));
    }
private function getRootNodeFromTreeBuilder(TreeBuilder $treeBuilder, string $nodeName): NodeDefinition
    {
        return (method_exists($treeBuilder, 'getRootNode')
            ? $treeBuilder->getRootNode()
            : $treeBuilder->root($nodeName));
    }
private function getRootNodeFromTreeBuilder ( TreeBuilder $ treeBuilder , string $ nodeName ) : NodeDefinition { return ( method_exists ( $ treeBuilder , 'getRootNode' ) ? $ treeBuilder -> getRootNode ( ) : $ treeBuilder -> root ( $ nodeName ) ) ; }
Get root node from tree builder.

@deprecated symfony/config 4.2 Simply use TreeBuilder::getRootNode()

@param TreeBuilder $treeBuilder
@param string      $nodeName

@return NodeDefinition
Get root node from tree builder .