Skip to content

Commit 7e3a49b

Browse files
committed
cs
1 parent e3143b3 commit 7e3a49b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: components/console/helpers/tree.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Manually Creating a Tree
4949

5050
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::
5151

52-
use Symfony\Component\Console\Helper\Tree
52+
use Symfony\Component\Console\Helper\TreeNode;
5353
use Symfony\Component\Console\Helper\TreeHelper;
5454

5555
$node = TreeNode::fromValues([
@@ -59,9 +59,9 @@ You can manually create a tree by creating a new instance of the :class:`Symfony
5959
],
6060
'Kernel.php',
6161
]);
62-
$node->add('templates', [
63-
'base.html.twig',
64-
]);
62+
$node->addChild('templates');
63+
$node->addChild('tests');
64+
6565
$tree = TreeHelper::createTree($io, $node);
6666
$tree->render();
6767

0 commit comments

Comments
 (0)