description: 'Generate an event subscriber'
questions:
  class: 'Class name'
  callback-name: 'Callback function name to handle event'
examples:
  - description: 'Generate an event subscriber specifying the module name, its name, the class and the events to subscribe'
    execution: |
      drupal generate:event:subscriber  \
        --module="modulename"  \
        --name="modulename.default"  \
        --class="DefaultSubscriber"  \
        --events='kernel_request'
