ServiceProviderAggregateInterface
extends
ContainerAwareInterface, IteratorAggregate
in
Table of Contents
- add() : self
- Add a service provider to the aggregate.
- getContainer() : ContainerInterface
- Get the container
- getLeagueContainer() : Container
- Get the container. This will be removed in favour of getContainer returning Container in next major release.
- 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() : self
- Set a container
- setLeagueContainer() : self
- Set a container. This will be removed in favour of setContainer receiving Container in next major release.
Methods
add()
Add a service provider to the aggregate.
public
add(string|ServiceProviderInterface $provider) : self
Parameters
- $provider : string|ServiceProviderInterface
Return values
self —getContainer()
Get the container
public
getContainer() : ContainerInterface
Return values
ContainerInterface —getLeagueContainer()
Get the container. This will be removed in favour of getContainer returning Container in next major release.
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) : self
Parameters
- $container : ContainerInterface
Return values
self —setLeagueContainer()
Set a container. This will be removed in favour of setContainer receiving Container in next major release.
public
setLeagueContainer(Container $container) : self
Parameters
- $container : Container