AbstractServiceProvider
in package
implements
ServiceProviderInterface
Uses
ContainerAwareTrait
Interfaces, Classes and Traits
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
$container
protected
ContainerInterface
$container
$identifier
protected
string
$identifier
$leagueContainer
protected
Container
$leagueContainer
$provides
protected
array<string|int, mixed>
$provides
= []
Methods
getContainer()
Get the container.
public
getContainer() : ContainerInterface
Return values
ContainerInterface —getIdentifier()
The id of the service provider uniquely identifies it, so that we can quickly determine if it has already been registered.
public
getIdentifier() : string
Return values
string —getLeagueContainer()
Get the container.
public
getLeagueContainer() : Container
Return values
Container —provides()
Returns a boolean if checking whether this provider provides a specific service or returns an array of provided services if no argument passed.
public
provides(string $alias) : bool
Parameters
- $alias : string
Return values
bool —setContainer()
Set a container.
public
setContainer(ContainerInterface $container) : ContainerAwareInterface
Parameters
- $container : ContainerInterface
Return values
ContainerAwareInterface —setIdentifier()
Set a custom id for the service provider. This enables registering the same service provider multiple times.
public
setIdentifier(string $id) : self
Parameters
- $id : string
Return values
self —setLeagueContainer()
Set a container.
public
setLeagueContainer(Container $container) : self
Parameters
- $container : Container