Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-core / dist / chain / sample.yml
1 command:
2   name: generate:example:module
3   description: 'Generate example module'
4 commands:
5   - command: generate:module
6     options:
7       module: Example module
8       machine-name: example
9       module-path: /modules/custom/
10       description: My example module
11       core: 8.x
12       package: Custom
13       dependencies:
14   - command: generate:controller
15     options:
16       module: example
17       class: HelloWorldController
18       routes:
19         - title: 'Hello World'
20           name: 'example.hello_name'
21           method: hello
22           path: '/example/hello/{name}'
23       services:
24           - entity_field.manager
25           - theme_handler
26           - config.factory
27       test: true
28   - command: generate:form:config
29     options:
30       module: example
31       class: SettingsForm
32       form-id: settings_form
33       inputs:
34         - name: foo_field
35           type: textfield
36           label: 'Foo field'
37           options: ''
38           description: ''
39           maxlength: '64'
40           size: '64'
41           default_value: ''
42           weight: '0'
43           fieldset: ''
44         - name: bar_number
45           type: number
46           label: 'Bar number'
47           options: ''
48           description: ''
49           maxlength: null
50           size: null
51           default_value: ''
52           weight: '0'
53           fieldset: ''
54       path: '/admin/setting/form'
55       menu_link_gen: true
56       menu_link_title: SettingsForm
57       menu_parent: system.admin_config_system
58       menu_link_desc: 'A description for the menu entry'
59   - command: generate:entity:content
60     options:
61       module: example
62       entity-class: Foo
63       entity-name: foo
64       label: Foo
65   - command: generate:entity:config
66     options:
67       module: example
68       entity-class: Bar
69       entity-name: bar
70       label: Bar
71   - command: generate:command
72     options:
73       module: example
74       class: ExampleCommand
75       name: example:command
76       container-aware: false
77   - command: generate:authentication:provider
78     options:
79       module: example
80       class: ExampleAuthenticationProvider
81   - command: generate:plugin:block
82     options:
83       module: example
84       class: ExampleBlock
85       label: Example plugin block
86       plugin-id: example_block
87   - command: generate:plugin:imageeffect
88     options:
89       module: example
90       class: ExampleImageEffect
91       plugin-id: example_image_effect
92       label: Example image effect
93       description: Example image effect
94   - command: generate:plugin:rest:resource
95     options:
96       module: example
97       class: ExampleRestResource
98       plugin-id: example_rest_resource
99       plugin-label: Example Rest Resource
100       plugin-url: example_rest_resource
101       plugin-states:
102         - GET
103         - PUT
104         - POST
105   - command: generate:service
106     options:
107       module: example
108       class: ExampleService
109       name: example.service
110       interface: yes
111   - command: module:install
112     arguments:
113       module: [example]