ServiceProviderAggregate
in package
implements
ServiceProviderAggregateInterface
Uses
ContainerAwareTrait
Interfaces, Classes and Traits
Table of Contents
- $container : ContainerInterface
- $leagueContainer : Container
- $providers : array<string|int, ServiceProviderInterface>
- $registered : array<string|int, mixed>
- add() : self
- Add a service provider to the aggregate.
- getContainer() : ContainerInterface
- Get the container.
- getIterator() : Generator
- {@inheritdoc}
- getLeagueContainer() : Container
- Get the container.
- provides() : bool
- Determines whether a service is provided by the aggregate.
- register() : void
- Invokes the register method of a provider that provides a specific service.
- setContainer() : ContainerAwareInterface
- Set a container.
- setLeagueContainer() : self
- Set a container.
Properties
$container
protected
ContainerInterface
$container
$leagueContainer
protected
Container
$leagueContainer
$providers
protected
array<string|int, ServiceProviderInterface>
$providers
= []
$registered
protected
array<string|int, mixed>
$registered
= []
Methods
add()
Add a service provider to the aggregate.
public
add(mixed $provider) : self
Parameters
- $provider : mixed
Return values
self —getContainer()
Get the container.
public
getContainer() : ContainerInterface
Return values
ContainerInterface —getIterator()
{@inheritdoc}
public
getIterator() : Generator
Return values
Generator —getLeagueContainer()
Get the container.
public
getLeagueContainer() : Container
Return values
Container —provides()
Determines whether a service is provided by the aggregate.
public
provides(string $service) : bool
Parameters
- $service : string
Return values
bool —register()
Invokes the register method of a provider that provides a specific service.
public
register(string $service) : void
Parameters
- $service : string
Return values
void —setContainer()
Set a container.
public
setContainer(ContainerInterface $container) : ContainerAwareInterface
Parameters
- $container : ContainerInterface
Return values
ContainerAwareInterface —setLeagueContainer()
Set a container.
public
setLeagueContainer(Container $container) : self
Parameters
- $container : Container