Automattic\WooCommerce

Container::__constructpublicWC 1.0

Class constructor.

Метод класса: Container{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код Container::__construct() WC 10.9.4

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,
		)
	);
}