File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
components/console/helpers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ Manually Creating a Tree
49
49
50
50
You can manually create a tree by creating a new instance of the :class: `Symfony\\ Component\\ Console\\ Helper\\ Tree ` class and adding nodes to it::
51
51
52
- use Symfony\Component\Console\Helper\Tree
52
+ use Symfony\Component\Console\Helper\TreeNode;
53
53
use Symfony\Component\Console\Helper\TreeHelper;
54
54
55
55
$node = TreeNode::fromValues([
@@ -59,9 +59,9 @@ You can manually create a tree by creating a new instance of the :class:`Symfony
59
59
],
60
60
'Kernel.php',
61
61
]);
62
- $node->add ('templates', [
63
- 'base.html.twig',
64
- ]);
62
+ $node->addChild ('templates');
63
+ $node->addChild('tests');
64
+
65
65
$tree = TreeHelper::createTree($io, $node);
66
66
$tree->render();
67
67
You can’t perform that action at this time.
0 commit comments