ExpressionEngine Docs

Getting Started

The Fundamentals

Advanced Usage

Best Practices

Community

make:service

Service Generator – Creates a new service for an add-on

Options list:

 --addon=<value>
 -a <value>
 Name of the add-on you want to add the service to
 --singleton
 -s
 Register the generated service in `services.singletons`

Examples:

Generating a service:

php eecli.php make:service MyService --addon=my_existing_addon

Generating a singleton service:

php eecli.php make:service MyService --addon=my_existing_addon --singleton


ExpressionEngine 7 Docs
©2002–2024 Packet Tide,LLC.
Edit this page

AltStyle によって変換されたページ (->オリジナル) /