help: 'The <info>generate:service</info> command helps you generate a new RouteSubscriber.'
welcome: 'Welcome to the Drupal RouteSubscriber generator.'
options:
- module: common.options.module
- name: 'Service name'
- class: 'Class name'
+ module: 'The Module name.'
+ name: 'Service name'
+ class: 'Class name'
questions:
- module: common.questions.module
- name: 'Enter the service name'
- class: 'Enter the Class name'
+ module: 'Enter the module name'
+ name: 'Enter the service name'
+ class: 'Enter the Class name'
+examples:
+ - description: 'Generate a route subscriber specifying the module name, the route name and its class'
+ execution: |
+ drupal generate:routesubscriber \
+ --module="modulename" \
+ --name="modulename.route_subscriber" \
+ --class="RouteSubscriber"