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'
5 module: 'The Module name.'
6 service-name: 'Service name'
9 interface-name: 'Interface name'
10 services: 'Load services from the container.'
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'
21 service-already-taken: 'The service name has been already taken in module "%s"'
23 - description: 'Generate a services without interface specifying the module name, the service name, the class and its path'
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'
32 drupal generate:service \
33 --module="modulename" \
34 --name="modulename.default" \
35 --class="DefaultService" \
37 --interface-name="InterfaceName" \
38 --path-service="/modules/custom/modulename/src/"