File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 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 `
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments