protected function getRootNode(TreeBuilder $treeBuilder, string $name)
    {
        if (\method_exists($treeBuilder, 'getRootNode')) {
            return $treeBuilder->getRootNode();
        } else {
            return $treeBuilder->root($name);
        }
    }
protected function getRootNode(TreeBuilder $treeBuilder, string $name)
    {
        if (\method_exists($treeBuilder, 'getRootNode')) {
            return $treeBuilder->getRootNode();
        } else {
            return $treeBuilder->root($name);
        }
    }
protected function getRootNode ( TreeBuilder $ treeBuilder , string $ name ) { if ( \ method_exists ( $ treeBuilder , 'getRootNode' ) ) { return $ treeBuilder -> getRootNode ( ) ; } else { return $ treeBuilder -> root ( $ name ) ; } }
Proxy to get root node for Symfony < 4.2.

@param TreeBuilder $treeBuilder
@param string      $name

@return NodeDefinition
Proxy to get root node for Symfony < 4 . 2 .