1 description: 'Generate an event subscriber'
2 help: 'The <info>generate:event:subscriber</info> command helps you generate a new event subscriber.'
3 welcome: 'Welcome to the Drupal Event Subscriber generator'
5 module: 'The Module name.'
8 services: 'Load services from the container.'
9 event-name: 'Enter event name'
10 callback-name: 'Callback function name to handle event'
12 module: 'Enter the module name'
13 name: 'Enter the service name'
14 class: 'Enter the class name'
15 services: 'Enter your service'
16 event-name: 'Enter event name'
17 callback-name: 'Enter the callback function name to handle event'
19 - description: 'Generate an event subscriber specifying the module name, its name, the class and the events to subscribe'
21 drupal generate:event:subscriber \
22 --module="modulename" \
23 --name="modulename.default" \
24 --class="DefaultSubscriber" \
25 --events='kernel_request'