WordPress at Your Fingertips
function is not described

Automattic\WooCommerce

Container::__construct() public WC 1.0

Class constructor.

{} It's a method of the class: Container{}

No Hooks.

Return

null. Nothing.

Usage

$Container = new Container();
$Container->__construct();

Code of Container::__construct() WC 5.5.2

<?php
public function __construct() {
	$this->container = new ExtendedContainer();

	// Add ourselves as the shared instance of ContainerInterface,
	// register everything else using service providers.

	$this->container->share( \Psr\Container\ContainerInterface::class, $this );

	foreach ( $this->service_providers as $service_provider_class ) {
		$this->container->addServiceProvider( $service_provider_class );
	}
}