Skip to content

[Console] Add more examples for lazy commands #18664

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

theofidry
Copy link
Contributor

I think the current doc is a bit confusing regarding the laziness of commands:

  • It does not mention LazyCommand which is quite important to make a command lazy in a way it still works with the list command which is used a lot.
  • The list doc regarding instantiating the commands is a bit too absolute. Technically it is not wrong but there is also more subtleties to it. Indeed what it will really do is instantiate the command and then try to get the name and description. Which also means if the underlying command/factory can still not be instantiated (either by tweaking Command or using LazyCommand). This is unlike another command like the auto-complete or help which will try to get the input definition in which case even a LazyCommand will call its command factory.

I am not sure which branch it should target however and I am sure there is a lot to say about the phrasing used.

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

Thanks Théo!

Minor note to mergers: use double backticks in code while merging.

@OskarStark
Copy link
Contributor

Open to finalize this PR @theofidry ?

@theofidry
Copy link
Contributor Author

@OskarStark updated

@xabbuh
Copy link
Member

xabbuh commented Oct 22, 2023

Can we merge this into the 5.4 branch?

@theofidry
Copy link
Contributor Author

@xabbuh I do not know if all of that applies to 5.4, if that's the case sure

@OskarStark
Copy link
Contributor

@chalasr do you know if 5.4 would be the right branch?

@theofidry
Copy link
Contributor Author

ping @chalasr (upon his request)

Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

👍 modulo Oskar's comment

@OskarStark OskarStark modified the milestones: 6.4, 6.3 Dec 23, 2023
@OskarStark
Copy link
Contributor

Thank you Théo.

@OskarStark OskarStark merged commit 1e61d2e into symfony:6.3 Dec 23, 2023
@theofidry theofidry deleted the docs/lazy branch December 25, 2023 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants