Skip to content
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

Help command for annotation classes #2106

Closed
greg-1-anderson opened this issue Mar 30, 2016 · 1 comment
Closed

Help command for annotation classes #2106

greg-1-anderson opened this issue Mar 30, 2016 · 1 comment
Assignees
Milestone

Comments

@greg-1-anderson
Copy link
Member

greg-1-anderson commented Mar 30, 2016

We need to implement our own sublcass of Application so that we can provide our own Application::getDefaultCommands. From there, we can provide our own implementation of the Help command.

The existing Symfony help command is not very extensible. It uses a Descriptor that formats the help sections in code. Each different output format is implemented as a subclass of Descriptor. To change the way help works using this model, we would need to make our own subclass of Descriptor in order to change the help structure, and then copy all of the existing formatters, so that they extended our subclass instead of Symfony's descriptor.

A better way to do it would be to follow the existing Drush model, and have the help command build a data structure containing the structured help contents. This could then be formatted by a formatter.

@weitzman
Copy link
Member

Closing in favor of #2670

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants