Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-en / translations / generate.event.subscriber.yml
index 97ff9bc29340e9bbabf193d22b3454c8c5e537d9..25561494054401086f6efcad80511d5768f83234 100644 (file)
@@ -1,4 +1,25 @@
 description: 'Generate an event subscriber'
+help: 'The <info>generate:event:subscriber</info> command helps you generate a new event subscriber.'
+welcome: 'Welcome to the Drupal Event Subscriber generator'
+options:
+  module: 'The Module name.'
+  name: 'Service name'
+  class: 'Class name'
+  services: 'Load services from the container.'
+  event-name: 'Enter event name'
+  callback-name: 'Callback function name to handle event'
 questions:
-    class: 'Class name'
-    callback-name: 'Callback function name to handle event'
+  module: 'Enter the module name'
+  name: 'Enter the service name'
+  class: 'Enter the class name'
+  services: 'Enter your service'
+  event-name: 'Enter event name'
+  callback-name: 'Enter the 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'