📅  最后修改于: 2022-03-11 14:53:43.683000             🧑  作者: Mango
$treeBuilder = new TreeBuilder('bundle_id');
$rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('bundle_id');