Automattic\WooCommerce\Vendor\League\Container
Container::__construct() public WC 1.0
Construct.
{} It's a method of the class: Container{}
No Hooks.
Return
Null. Nothing.
Usage
$Container = new Container(); $Container->__construct(;
Code of Container::__construct() Container:: construct WC 5.0.0
public function __construct(
DefinitionAggregateInterface $definitions = null,
ServiceProviderAggregateInterface $providers = null,
InflectorAggregateInterface $inflectors = null
) {
$this->definitions = $definitions ?? new DefinitionAggregate;
$this->providers = $providers ?? new ServiceProviderAggregate;
$this->inflectors = $inflectors ?? new InflectorAggregate;
if ($this->definitions instanceof ContainerAwareInterface) {
$this->definitions->setLeagueContainer($this);
}
if ($this->providers instanceof ContainerAwareInterface) {
$this->providers->setLeagueContainer($this);
}
if ($this->inflectors instanceof ContainerAwareInterface) {
$this->inflectors->setLeagueContainer($this);
}
}