Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-en / translations / generate.service.yml
index fc10f69a5fd1027627090422d4517e55948c85ab..567907b14b50c4121fc787b3a460fa2b27d04784 100644 (file)
@@ -2,19 +2,37 @@ description: 'Generate service'
 help: 'The <info>generate:service</info> command helps you generate a new service.'
 welcome: 'Welcome to the Drupal service generator'
 options:
-    module: common.options.module
-    service-name: 'Service name'
-    class: 'Class name'
-    interface: Interface
-    services: common.questions.services
-    path:  Path
+  module: 'The Module name.'
+  service-name: 'Service name'
+  class: 'Class name'
+  interface: 'Interface'
+  interface-name: 'Interface name'
+  services: 'Load services from the container.'
+  path-service:  'Path'
 questions:
-    module: common.questions.module
-    service-name: 'Enter the service name'
-    class: 'Enter the Class name'
-    interface: 'Create an interface'
-    interface_name: 'Enter the interface name'
-    services: common.options.services
-    path: 'Enter the path for the services'
+  module: 'Enter the module name'
+  service-name: 'Enter the service name'
+  class: 'Enter the Class name'
+  interface: 'Create an interface'
+  interface-name: 'Enter the interface name'
+  services: 'Enter your service'
+  path-service: 'Enter the path for the services'
 messages:
-    service-already-taken: 'The service name has been already taken in module "%s"'
+  service-already-taken: 'The service name has been already taken in module "%s"'
+examples:
+  - description: 'Generate a services without interface specifying the module name, the service name, the class and its path'
+    execution: |
+      drupal generate:service  \
+        --module="modulename"  \
+        --name="modulename.default"  \
+        --class="DefaultService"  \
+        --path-service="/modules/custom/modulename/src/"
+  - description: 'Generate a services with interface specifying the module name, the service name, the class, the interface name and its path'
+    execution: |
+      drupal generate:service  \
+        --module="modulename"  \
+        --name="modulename.default"  \
+        --class="DefaultService"  \
+        --interface  \
+        --interface-name="InterfaceName"  \
+        --path-service="/modules/custom/modulename/src/"