Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-en / translations / generate.event.subscriber.yml
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'
4 options:
5   module: 'The Module name.'
6   name: 'Service name'
7   class: 'Class name'
8   services: 'Load services from the container.'
9   event-name: 'Enter event name'
10   callback-name: 'Callback function name to handle event'
11 questions:
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'
18 examples:
19   - description: 'Generate an event subscriber specifying the module name, its name, the class and the events to subscribe'
20     execution: |
21       drupal generate:event:subscriber  \
22         --module="modulename"  \
23         --name="modulename.default"  \
24         --class="DefaultSubscriber"  \
25         --events='kernel_request'