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

Convert commands to classes. #612

Closed
wants to merge 1 commit into from
Closed

Convert commands to classes. #612

wants to merge 1 commit into from

Conversation

TravisCarden
Copy link
Contributor

This is the beginning of a proof of concept for converting Drush commands to classes per #532 (comment). I'm beginning by creating a CommandInterface, imagining that individual commands would implement it. I started by just creating a method for each of the major elements returned by COMMANDFILE_drush_command() and one for each of the command hooks. Does this seem like the right approach? Should I continue?

@weitzman
Copy link
Member

Thats generally the idea, yes. However, Symfony Console already provides a framework and we might benefit from just using that. There are some open questions though. We could use your input at #88

@weitzman
Copy link
Member

weitzman commented May 8, 2014

Dupe

@weitzman weitzman closed this May 8, 2014
@TravisCarden TravisCarden deleted the command-classes branch May 22, 2015 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants