Problem/Motivation

The prometheus:export Drush command is silently not discovered. The SerializerInterface constructor parameter cannot be autowired by type because Drupal's container has multiple serializer services. Without an explicit service ID, Drush's autowiring fails and the command is never registered.

Steps to reproduce

Proposed resolution

Add the #[Autowire] attribute to explicitly specify the prometheus_exporter.serializer service for the SerializerInterface parameter.

Remaining tasks

User interface changes

API changes

Data model changes

Command icon 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

kim.pepper created an issue. See original summary.

  • kim.pepper committed 28301b4d on 2.x
    fix: #3592133 Drush command not discovered due to autowiring failure
    
    By...
kim.pepper’s picture

Status: Active » Fixed

Committed to 2.x

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.