diff --git a/12.x/dependency-injection/index.html b/12.x/dependency-injection/index.html index 4caada1bda..a723cd9e75 100644 --- a/12.x/dependency-injection/index.html +++ b/12.x/dependency-injection/index.html @@ -5259,7 +5259,7 @@
12.5+
-Command files may inject Drush and Drupal services by adding the AutowireTrait to the class (example: PmCommands). This enables your Constructor parameter type hints determine the the injected service. When a type hint is insufficient, an #[Autowire] Attribute on the constructor property (with service: named argument) directs AutoWireTrait to the right service (example: LoginCommands).
+Command files may inject Drush and Drupal services by adding the AutowireTrait to the class (example: PmCommands). This enables your Constructor parameter type hints determine the the injected service. When a type hint is insufficient, an #[Autowire] Attribute on the constructor property (with service: named argument) directs AutoWireTrait to the right service (example: LoginCommands).
If your command is not found by Drush, add the -vvv
option for debug info about any service instantiation errors. If Autowire is still insufficient, a commandfile may implement its own create()
method (see below).
11.6+
@@ -5298,7 +5298,7 @@