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

MULTISITE-23486: Allow dynamic commands to override all code provided commands #119

Merged
merged 15 commits into from
May 19, 2020

Conversation

claudiu-cristea
Copy link
Contributor

MULTISITE-23486

Description

Right now, a dynamic command can override a default commands, such as drupal:site-install or release:create-archive. But it cannot override commands provided by 3rd party, such as ec-europa/toolkit. The reason is that such commands are discovered after discovering dynamic commands, in \Robo\Runner::run().

This PR swaps the order by discovering and registering the 3rd party commands before registering dynamic commands, so that a command provided in runner.yml will override an class annotated command.

Change log

  • Added:
  • Changed:
  • Deprecated:
  • Removed:
  • Fixed:
  • Security:

Commands

@pfrenssen
Copy link
Member

This is looking good, just a few small nitpicks.

I spent a lot of time trying to understand the working of the library, so I went ahead and added documentation for the code that is touched by this PR. This will hopefully make it easier for others to understand the purpose of the code, and save them some time.

composer.json Outdated Show resolved Hide resolved
src/TaskRunner.php Show resolved Hide resolved
@claudiu-cristea
Copy link
Contributor Author

I've fixed the remarks.

@idimopoulos idimopoulos merged commit f4fa798 into master May 19, 2020
@idimopoulos idimopoulos deleted the MULTISITE-23486 branch May 19, 2020 08:44
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.

3 participants