Skip to content

Commit 30cbbc3

Browse files
committed
added docs for the make service CLI command
1 parent a812779 commit 30cbbc3

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# make:service
2+
3+
Service Generator -- Creates a new service for an add-on
4+
5+
## Options list:
6+
7+
```
8+
--addon=<value>
9+
-a <value>
10+
Name of the add-on you want to add the service to
11+
12+
--singleton
13+
-s
14+
Register the generated service in `services.singletons`
15+
```
16+
17+
## Examples:
18+
19+
### Generating a service:
20+
21+
`php eecli.php make:service MyService --addon=my_existing_addon`
22+
23+
### Generating a singleton service:
24+
25+
`php eecli.php make:service MyService --addon=my_existing_addon --singleton`

docs/toc_sections/_advanced_usage_toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,8 @@
688688
href: cli/built-in-commands/migrate.md
689689
- name: Model Generator
690690
href: cli/built-in-commands/make-model.md
691+
- name: Service Generator
692+
href: cli/built-in-commands/make-service.md
691693
- name: Prolet Generator
692694
href: cli/built-in-commands/make-prolet.md
693695
- name: Sync Conditional Fields

0 commit comments

Comments
 (0)