Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
[Console] Document theTreeHelper
#20786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
.. code-block:: text | ||
🔵 🟣 🟡 src |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I love this example ❤️
🔵 🟢 🟢 🟠 🟡 DefaultController.php | ||
🔵 🟢 🟠 🟡 Kernel.php | ||
🔵 🟠 🟡 templates | ||
🔵 🔴 🟠 🟡 base.html.twig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Please add a versionadded directive below, like for other new features, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The whole page is about the new tree helper, should i put the versionadded at the very start of the page ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think yes, and add it also inconsole/style.rst
after the new methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Yes please, so that a reader knows, since when this can be used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Would this work ? (last changes)
Uh oh!
There was an error while loading.Please reload this page.
Link to the code PR is not working in the PR header |
TreeHelper
Fixed sorry |
cfb9dad
tod9a48be
Compareb39f1c1
intosymfony:7.3Uh oh!
There was an error while loading.Please reload this page.
javiereguiluz commentedMar 24, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks Simon for contributing this nice feature and for providing such detailed docs for it. While merging I did some tweaks (seea0758ac):
|
Thank you very much@javiereguiluz !! |
This PR was merged into the 7.3 branch.Discussion----------[Console] Tweak the tree helperThis continues#20786 to do some minor tweaks.1) We now display a full example of how to select the built-in styles.2) The listing of built-in styles now provides more details.Before, it was rendered like this (seehttps://symfony.com/doc/7.3/components/console/helpers/tree.html)-----I think it's fine to remove the `:method:` link because it doesn't provide direct links to the method, just to the class. So, all the previous `:methods:` links were in practice the same link.Commits-------5844ee6 [Console] Tweak the tree helper
Uh oh!
There was an error while loading.Please reload this page.
fix#20692