Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Merged
javiereguiluz merged 1 commit intosymfony:7.3fromsmnandre:console-tree-helper
Mar 24, 2025

Conversation

smnandre
Copy link
Member

@smnandresmnandre commentedMar 21, 2025
edited
Loading

QA
Feature PRsymfony/symfony#59588
PR author(s)@smnandre
Merged in7.3
Doc IssueFix#20692

fix#20692


.. code-block:: text

🔵 🟣 🟡 src
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I love this example ❤️

smnandre reacted with hooray emoji
🔵 🟢 🟢 🟠 🟡 DefaultController.php
🔵 🟢 🟠 🟡 Kernel.php
🔵 🟠 🟡 templates
🔵 🔴 🟠 🟡 base.html.twig
Copy link
Contributor

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

Copy link
MemberAuthor

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 ?

javiereguiluz reacted with thumbs up emoji
Copy link
Contributor

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

Copy link
Contributor

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

smnandre reacted with thumbs up emoji
Copy link
MemberAuthor

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)

@OskarStark
Copy link
Contributor

Link to the code PR is not working in the PR header

@OskarStarkOskarStark changed the title[Console] Document the TreeHelper[Console] Document theTreeHelperMar 22, 2025
@smnandre
Copy link
MemberAuthor

Link to the code PR is not working in the PR header

Fixed sorry

OskarStark reacted with thumbs up emoji

@javiereguiluzjaviereguiluz merged commitb39f1c1 intosymfony:7.3Mar 24, 2025
2 of 3 checks passed
@javiereguiluz
Copy link
Member

javiereguiluz commentedMar 24, 2025
edited
Loading

Thanks Simon for contributing this nice feature and for providing such detailed docs for it.

While merging I did some tweaks (seea0758ac):

  • Updated the intro to add some examples of when to use this
  • Added a full code example of using this inside a console command. This is important because if you copy+paste the examples, it won't work (e.g. the$io variable is not defined). I only added this in the first example to avoid boring repetition
  • Changedtext byterminal in the code examples to display the rendered output in a terminal-like window.

@smnandre
Copy link
MemberAuthor

Thank you very much@javiereguiluz !!

OskarStark added a commit that referenced this pull requestMar 26, 2025
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)![](https://github.com/user-attachments/assets/420337e2-686d-44c2-b17e-20cff771ea5e)-----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
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@alamiraultalamiraultalamirault left review comments

@OskarStarkOskarStarkOskarStark approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

[Console] Add a Tree Helper + multiple Styles
5 participants
@smnandre@OskarStark@javiereguiluz@alamirault@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp