Automattic\WooCommerce

Container::__constructpublicWC 1.0

Class constructor.

Method of the class: Container{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Container::__construct() code WC 10.7.0

public function __construct() {
	// When the League container was in use we allowed to retrieve the container itself
	// by using 'Psr\Container\ContainerInterface' as the class identifier,
	// we continue allowing that for compatibility.
	$this->container = new RuntimeContainer(
		array(
			__CLASS__                          => $this,
			'Psr\Container\ContainerInterface' => $this,
		)
	);
}