Problem/Motivation
Our drush command has the following issues:
- Using
drush.services.ymlfor service registration is deprecated - Using Drush
#[Command]attribute instead of Symfony's#[AsCommand]is deprecated - Extending
DrushCommandsbase class is deprecated - Located in
src/Commands/instead ofsrc/Drush/Commands/
Steps to reproduce
Proposed resolution
- Delete
drush.services.ymland useAutowireTraitfor dependency injection - Move command to
src/Drush/Commands/PrometheusExportCommand.php - Extend
Symfony\Component\Console\Command\Commanddirectly - Use
#[AsCommand]attribute - Remove obsolete
extra.drush.servicesfromcomposer.json
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork prometheus_exporter-3591453
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
kim.pepperCommitted to 2.x