Skip to content

Commit

Permalink
Add tip for generator authoring
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Jun 2, 2023
1 parent 5bc18a2 commit f0bb446
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/generators.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Overview

!!! tip

Drush 11 and prior required generators to define a [drush.services.yml file](https://www.drush.org/11.x/dependency-injection/#services-files). This is no longer used with Drush 12+ generators. See [create() method](dependency-injection.md#create-method) for injecting dependencies.

Generators jump start your coding by building all the boring boilerplate code for you. After running the [generate command](commands/generate.md), you have a guide for where to insert your custom logic.

Drush's generators reuse classes provided by the excellent [Drupal Code Generator](https://github.com/Chi-teck/drupal-code-generator) project. See its [Commands directory](https://github.com/Chi-teck/drupal-code-generator/tree/3.x/src/Command) for inspiration.
Expand Down

0 comments on commit f0bb446

Please sign in to comment.