567907b14b50c4121fc787b3a460fa2b27d04784
[yaffs-website] / vendor / drupal / console-en / translations / generate.service.yml
1 description: 'Generate service'
2 help: 'The <info>generate:service</info> command helps you generate a new service.'
3 welcome: 'Welcome to the Drupal service generator'
4 options:
5   module: 'The Module name.'
6   service-name: 'Service name'
7   class: 'Class name'
8   interface: 'Interface'
9   interface-name: 'Interface name'
10   services: 'Load services from the container.'
11   path-service:  'Path'
12 questions:
13   module: 'Enter the module name'
14   service-name: 'Enter the service name'
15   class: 'Enter the Class name'
16   interface: 'Create an interface'
17   interface-name: 'Enter the interface name'
18   services: 'Enter your service'
19   path-service: 'Enter the path for the services'
20 messages:
21   service-already-taken: 'The service name has been already taken in module "%s"'
22 examples:
23   - description: 'Generate a services without interface specifying the module name, the service name, the class and its path'
24     execution: |
25       drupal generate:service  \
26         --module="modulename"  \
27         --name="modulename.default"  \
28         --class="DefaultService"  \
29         --path-service="/modules/custom/modulename/src/"
30   - description: 'Generate a services with interface specifying the module name, the service name, the class, the interface name and its path'
31     execution: |
32       drupal generate:service  \
33         --module="modulename"  \
34         --name="modulename.default"  \
35         --class="DefaultService"  \
36         --interface  \
37         --interface-name="InterfaceName"  \
38         --path-service="/modules/custom/modulename/src/"