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

External commands should be registered before custom commands #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

External commands should be registered before custom commands #51

wants to merge 1 commit into from

Conversation

claudiu-cristea
Copy link
Contributor

Problem

Right now, the dynamic/custom commands are registered in the TaskRunner constructor. The external commands, provided by 3rd party, are registered after TaskRunner has been constructed, in ./bin/run:

$runner = new TaskRunner();
$runner->registerExternalCommands($classLoader);

For this reason a custom command cannot add an external command as a task because at that moment the external command is not yet registered.

Solution

Call ::registerExternalCommands() from the TaskRunner constructor, just before calling ::registerDynamicCommands().

@ademarco
Copy link
Member

ademarco commented Jul 4, 2018

@claudiu-cristea we moved to the new native Robo plugin system, does this still happen on latest master?

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