Gravity_Forms\Gravity_Forms\GF_Service_Provider
Class GF_Service_Provider
An abstraction which provides a contract for defining Service Providers. Service Providers facilitate organizing Services into discreet modules, as opposed to having to register each service in a single location.
Since: 2.5
Source: includes/class-gf-service-provider.php:18
Details
- Kind:
class - Namespace:
Gravity_Forms\Gravity_Forms
Properties
| Property | Type | Description |
|---|---|---|
$container | GF_Service_Container |
Methods
| Method | Description |
|---|---|
register() | Register new services to the Service Container. |
init() | Noop by default - used to initialize hooks and filters for the given module. |
register_app() | Register a JS app with the given arguments. |
Method Reference
register()
abstract public function register( GF_Service_Container $container )
Register new services to the Service Container.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$container | GF_Service_Container |
Returns
void
Source: includes/class-gf-service-provider.php:36
init()
public function init( GF_Service_Container $container )
Noop by default - used to initialize hooks and filters for the given module.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$container | GF_Service_Container |
Source: includes/class-gf-service-provider.php:41
register_app()
public function register_app( $args )
Register a JS app with the given arguments.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$args | array |
Since: 2.7.1
Source: includes/class-gf-service-provider.php:54