Skip to content

Commit

Permalink
Update example command alterer example link. (#5758)
Browse files Browse the repository at this point in the history
* Update example command alterer example link.

* Fix link that GH tried to do fancy things with.

* Fix wrong link from clipboard.

* 12.x link

---------

Co-authored-by: Moshe Weitzman <weitzman@tejasa.com>
  • Loading branch information
adamzimmermann and weitzman committed Sep 14, 2023
1 parent b924aa6 commit 05fa568
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 @@ -69,7 +69,7 @@ In the module that wants to alter a command info, add a class that:
1. Implement the alteration logic in the `alterCommandInfo()` method.
1. Along with the alter code, it's strongly recommended to log a debug message explaining what exactly was altered. This makes things easier on others who may need to debug the interaction of the alter code with other modules. Also it's a good practice to inject the the logger in the class constructor.

For an example, see [WootCommandInfoAlterer](https://github.com/drush-ops/drush/blob/12.x/sut/modules/unish/woot/src/WootCommandInfoAlterer.php) provided by the testing 'woot' module.
For an example, see [WootCommandInfoAlterer](https://github.com/drush-ops/drush/blob/12.x/sut/modules/unish/woot/src/Drush/CommandInfoAlterers/WootCommandInfoAlterer.php) provided by the testing 'woot' module.

## Symfony Console Commands
Drush lists and runs Symfony Console commands, in addition to more typical annotated commands. See [this test](https://github.com/drush-ops/drush/blob/eed106ae4510d5a2df89f8e7fd54b41ffb0aa5fa/tests/integration/AnnotatedCommandCase.php#L178-L180) and this [commandfile](https://github.com/drush-ops/drush/blob/12.x/sut/modules/unish/woot/src/Commands/GreetCommand.php).
Expand Down

0 comments on commit 05fa568

Please sign in to comment.