WooCommerce Code Reference

AbstractServiceProvider
in package
implements ServiceProviderInterface Uses ContainerAwareTrait

Interfaces, Classes and Traits

ServiceProviderInterface

Table of Contents

$container  : ContainerInterface
$identifier  : string
$leagueContainer  : Container
$provides  : array<string|int, mixed>
getContainer()  : ContainerInterface
Get the container.
getIdentifier()  : string
The id of the service provider uniquely identifies it, so that we can quickly determine if it has already been registered.
getLeagueContainer()  : Container
Get the container.
provides()  : bool
Returns a boolean if checking whether this provider provides a specific service or returns an array of provided services if no argument passed.
setContainer()  : ContainerAwareInterface
Set a container.
setIdentifier()  : self
Set a custom id for the service provider. This enables registering the same service provider multiple times.
setLeagueContainer()  : self
Set a container.

Properties

Methods