Skip to content

Drush 8 discover my new drush 9 command file as well.  #3041

Description

@segi

I ported my drush command set to be drush 9 compatible, my module just only contains a drush command set so it isn't a real module. So every time if somebody wants to use it, he/she needs to run with drush -r {docroot} -i {docroot/module/mymodule}.
My new command file is working with drush 9, but I wanted to test my module with drush 8 as well.
The drush failed with PHP error: PHP Fatal error: Class 'Drush\Commands\DrushCommands' not found
because the annotationcommand_adapter_get_discovery() method finds my commands class but it's using class which isn't available in drush 8.

I tested with drush 8.1.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions