WooCommerce Code Reference

BootableServiceProviderInterface extends ServiceProviderInterface

Table of Contents

boot()  : void
Method will be invoked on registration of a service provider implementing this interface. Provides ability for eager loading of Service Providers.
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. This will be removed in favour of getContainer returning Container in next major release.
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.
register()  : void
Use the register method to register items with the container via the protected $this->leagueContainer property or the `getLeagueContainer` method from the ContainerAwareTrait.
setContainer()  : self
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. This will be removed in favour of setContainer receiving Container in next major release.

Methods