Skip to content

Commit

Permalink
Update commands doc to make specific reference to the AutowireTrait
Browse files Browse the repository at this point in the history
… requirement (#6126)

* Update commands.md

Make specific reference to AutowireTrait

* Update docs/commands.md

---------

Co-authored-by: Moshe Weitzman <[email protected]>
  • Loading branch information
bradjones1 and weitzman authored Oct 6, 2024
1 parent b2f029d commit 6a7b0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

!!! tip

1. Drush 13 expects commandfiles to use [Autowire](https://github.com/drush-ops/drush/blob/13.x/src/Commands/AutowireTrait.php) to inject Drupal and Drush dependencies. Prior versions used a [drush.services.yml file](https://www.drush.org/11.x/dependency-injection/#services-files) which is now deprecated and will be removed in Drush 13.
1. Drush 13 expects commandfiles to use the [AutowireTrait](https://github.com/drush-ops/drush/blob/13.x/src/Commands/AutowireTrait.php) to inject Drupal and Drush dependencies. Prior versions used a [drush.services.yml file](https://www.drush.org/11.x/dependency-injection/#services-files) which is now deprecated and will be removed in Drush 14.
1. Drush 12 expects all commandfiles in the `<module-name>/src/Drush/<Commands|Generators>` directory. The `Drush` subdirectory is a new requirement.

Creating a new Drush command is easy. Follow the steps below.
Expand Down

0 comments on commit 6a7b0bf

Please sign in to comment.