Problem/Motivation

The docs page at https://www.drupal.org/docs/develop/drupal-apis/command-line-interface-c... says:

> Drupal's new standard highly encourages Single Responsibility using the __invoke() method on a plain class, creating one class per command.

But in core.api.php, two techniques are presented:

- inherit from Symfony Command
- plain class

If the recommended method is a plain class, these two options should be in the opposite order, and the plain class method should state it's the recommended way.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Comments

joachim created an issue.