Create custom Drush command
Submitted by
Dmitro
on
Create in module directory file named drush.services.yml with similar content:
services:
custom_base.commands:
class: Drupal\custom_base\Commands\CustomCommands
arguments:
- '@config.factory'
- '@entity_type.manager'
- '@database'
tags:
- { name: drush.command }
In Drupal\custom_base\src\Commands need to create file CustomCommands.php: